better caching for both appearances and meshed models

This commit is contained in:
2024-03-06 22:10:11 +01:00
parent de7acfee50
commit 5f87489939
46 changed files with 364 additions and 278 deletions

View File

@@ -41,6 +41,7 @@ public class BlockItemMixin {
|| !Block.isShapeFullCube(block.getBlock().getDefaultState().getCollisionShape(world, pos))
) return;
NbtCompound new_comp = new NbtCompound();
player.getOffHandStack().decrement(1);
new_comp.put(BLOCKSTATE_KEY + 1, NbtHelper.fromBlockState(block.getBlock().getDefaultState()));
compound.set(new_comp);
}