Skip to content

Commit

Permalink
maybe-better inventory size defaulting handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 8, 2020
1 parent 7245530 commit 504ea6f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -159,7 +159,7 @@ public InventoryTag getInventoryFrom(PlayerTag player, NPCTag npc) {
}
}
if (size == 0) {
if (contains("slots") && (getInventoryType().getDefaultSize() % 9) == 0) {
if (contains("slots") && getInventoryType().name().equalsIgnoreCase("chest")) {
size = getStringList("slots").size() * 9;
}
else {
Expand Down

0 comments on commit 504ea6f

Please sign in to comment.