From d0f4ea826290d13a8657a262593badc6da43e11d Mon Sep 17 00:00:00 2001 From: shedaniel Date: Tue, 26 Sep 2023 11:08:14 +0800 Subject: Support MinecraftForge 1.20.2 --- runtime/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsNetwork.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/src') diff --git a/runtime/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsNetwork.java b/runtime/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsNetwork.java index 6795cfdb9..a54325403 100644 --- a/runtime/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsNetwork.java +++ b/runtime/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsNetwork.java @@ -171,7 +171,7 @@ public class RoughlyEnoughItemsNetwork { try { boolean shift = packetByteBuf.readBoolean(); try { - CompoundTag nbt = packetByteBuf.readAnySizeNbt(); + CompoundTag nbt = packetByteBuf.readNbt(); List> inputs = readInputs(nbt.getCompound("Inputs")); List input = readSlots(container, player, nbt.getList("InputSlots", Tag.TAG_COMPOUND)); List inventory = readSlots(container, player, nbt.getList("InventorySlots", Tag.TAG_COMPOUND)); -- cgit