From 50165edded0bb329823350d9e7035042d6db04f1 Mon Sep 17 00:00:00 2001 From: Jackson H Date: Tue, 6 Apr 2021 00:22:34 -0700 Subject: [PATCH] Fixed Slabfish not dropping backpack items correctly. Fixes #133 --- .../environmental/common/inventory/SlabfishInventory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minecraftabnormals/environmental/common/inventory/SlabfishInventory.java b/src/main/java/com/minecraftabnormals/environmental/common/inventory/SlabfishInventory.java index 062c4acfe..72fad2479 100644 --- a/src/main/java/com/minecraftabnormals/environmental/common/inventory/SlabfishInventory.java +++ b/src/main/java/com/minecraftabnormals/environmental/common/inventory/SlabfishInventory.java @@ -45,7 +45,7 @@ public int getSlotStackLimit(int index) { @Override public int getSizeInventory() { - return 3 + (this.getStackInSlot(1).getItem().isIn(Tags.Items.CHESTS_WOODEN) ? 15 : 0); + return 3 + (this.slabfish.hasBackpack() || this.getStackInSlot(1).getItem().isIn(Tags.Items.CHESTS_WOODEN) ? 15 : 0); } @Override