Loosen restrictions on inventory sizing

Allows creating (but not opening) inventories created eg via Bukkit.createInventory(..., InventoryType.PLAYER);

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2019-04-27 12:50:43 +10:00
parent 520c838a5c
commit 65ed9737c3
3 changed files with 3 additions and 4 deletions

View File

@@ -333,7 +333,7 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
customSize = Containers.GENERIC_9X6;
break;
default:
throw new IllegalArgumentException("Unsupported custom size " + inventory.getSize());
throw new IllegalArgumentException("Unsupported custom inventory size " + inventory.getSize());
}
openCustomInventory(inventory, player, customSize);
break;