1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2026-01-04 15:31:36 +00:00

Fix hashing of item container contents component

This commit is contained in:
Eclipse
2025-03-31 14:20:10 +00:00
parent de1c1975b0
commit b46651e3a6

View File

@@ -271,7 +271,10 @@ public interface RegistryHasher<DirectType> extends MinecraftHasher<Integer> {
MinecraftHasher<List<ItemStack>> ITEM_CONTAINER_CONTENTS = CONTAINER_SLOT.list().cast(stacks -> {
List<ItemContainerSlot> slots = new ArrayList<>();
for (int i = 0; i < stacks.size(); i++) {
slots.add(new ItemContainerSlot(i, stacks.get(i)));
ItemStack stack = stacks.get(i);
if (stack != null) {
slots.add(new ItemContainerSlot(i, stacks.get(i)));
}
}
return slots;
});