Skip to content

Commit

Permalink
fix: fixup 1.20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Nov 14, 2024
1 parent c2d7d60 commit b622236
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit b622236

Please sign in to comment.