From b622236998852612e8a2da1ae4238a0803132e40 Mon Sep 17 00:00:00 2001 From: William278 Date: Thu, 14 Nov 2024 14:52:16 +0000 Subject: [PATCH] fix: fixup 1.20.1 --- .../java/net/william278/husksync/data/FabricSerializer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fabric/src/main/java/net/william278/husksync/data/FabricSerializer.java b/fabric/src/main/java/net/william278/husksync/data/FabricSerializer.java index b9886a1d..44706574 100644 --- a/fabric/src/main/java/net/william278/husksync/data/FabricSerializer.java +++ b/fabric/src/main/java/net/william278/husksync/data/FabricSerializer.java @@ -94,7 +94,7 @@ public FabricData.Items.Inventory deserialize(@NotNull String serialized) { public String serialize(@NotNull FabricData.Items.Inventory data) throws SerializationException { try { final NbtCompound root = new NbtCompound(); - root.put(ITEMS_TAG, serializeItemArray(data.getContents(), (FabricHuskSync) getPlugin())); + root.put(ITEMS_TAG, serializeItemArray(data.getContents())); root.putInt(HELD_ITEM_SLOT_TAG, data.getHeldItemSlot()); return root.toString(); } catch (Throwable e) { @@ -132,7 +132,7 @@ public FabricData.Items.EnderChest deserialize(@NotNull String serialized) { @Override public String serialize(@NotNull FabricData.Items.EnderChest data) throws SerializationException { try { - return serializeItemArray(data.getContents(), (FabricHuskSync) getPlugin()).toString(); + return serializeItemArray(data.getContents()).toString(); } catch (Throwable e) { throw new SerializationException("Failed to serialize ender chest item NBT to string", e); }