Change the asset keys

This commit is contained in:
2026-11-04 21:54:01 -03:00
parent ba4b2a8798
commit 4683b09e10
20 changed files with 39 additions and 39 deletions
+2 -2
View File
@@ -92,7 +92,7 @@ export function ground_transform(item: ItemStack): ItemTransform {
// the atlas has to be the current texture
export function render_item_entity(entity: ItemEntity, partial_tick: number) {
const atlas = AssetManager.instance.get<Texture>("bworld:textures");
const atlas = AssetManager.instance.get<Texture>("cubi:textures");
// spinning and bobbing, like minecraft's ItemEntityRenderer
const time = entity.age + partial_tick;
@@ -130,7 +130,7 @@ const shown_stacks = new WeakMap<ItemData, ItemStack>();
// every item blocks with item_display show on top of them, their "item" client data, see BlockRegistry.item_display.
// the atlas has to be the current texture
export function render_block_items(level: ClientLevel) {
const atlas = AssetManager.instance.get<Texture>("bworld:textures");
const atlas = AssetManager.instance.get<Texture>("cubi:textures");
const blocks = EverythingRegistry.get_registry<BlockRegistry>("blocks");
for (const in_chunk of level.block_data.values()) {
for (const { x, y, z, data } of in_chunk.values()) {