Change the asset keys
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user