Skip to content

Commit

Permalink
Fix inventory sizes not always being a multiple of 9, #77
Browse files Browse the repository at this point in the history
This could cause compat issues with other mods, like Inventory Tweaks
  • Loading branch information
rubensworks committed Apr 29, 2017
1 parent 5703e9f commit d78178d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public SPacketUpdateTileEntity getUpdatePacket() {
}

protected int calculateInventorySize() {
return (int) Math.ceil((Math.pow(getSizeSingular(), 3) * 27) * getMaterial().getInventoryMultiplier());
return (int) Math.ceil((Math.pow(getSizeSingular(), 3) * 27) * getMaterial().getInventoryMultiplier() / 9) * 9;
}

@Override
Expand Down

0 comments on commit d78178d

Please sign in to comment.