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:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user