Rename engine to cubi
This commit is contained in:
+2
-2
@@ -74,7 +74,7 @@ export function item_texture(
|
||||
item: ItemStack,
|
||||
info = EverythingRegistry.get<ItemRegistry>("items", item.type_id),
|
||||
): string {
|
||||
if (!info) return "engine:missing";
|
||||
if (!info) return "cubi:missing";
|
||||
const data = item.data as Record<string, unknown> | undefined;
|
||||
for (const [key, texture] of Object.entries(info.data_textures ?? {})) {
|
||||
if (data?.[key]) return texture;
|
||||
@@ -234,7 +234,7 @@ export function can_place(
|
||||
below: string,
|
||||
): boolean {
|
||||
if (!block) return false;
|
||||
const into = current?.id ?? "bworld:air";
|
||||
const into = current?.id ?? "cubi:air";
|
||||
const replaceable = !current || current.replaceable === true;
|
||||
const in_ok = block.place_in ? list_matches("blocks", block.place_in, into) : replaceable;
|
||||
// one that's only ever waterlogged goes into a source of its fluid and nothing else
|
||||
|
||||
Reference in New Issue
Block a user