Skip to content

Commit

Permalink
Use correct inventory size for ender chest command
Browse files Browse the repository at this point in the history
  • Loading branch information
WizardCM committed Oct 22, 2023
1 parent a839d98 commit 5774397
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public Inventory getOfflinePlayerEnderInventory(OfflinePlayer op, String world)
final PlayerConfiguration pcm = PlayerConfigurationManager.getConfiguration(op);
if (!pcm.exists()) pcm.createFile();
final int invSize = pcm.getInt("inventory." + group + ".ender.size");
final Inventory i = this.plugin.getServer().createInventory(new EnderInventoryHolder(w, op.getUniqueId()), InventoryType.PLAYER.getDefaultSize());
final Inventory i = this.plugin.getServer().createInventory(new EnderInventoryHolder(w, op.getUniqueId()), InventoryType.ENDER_CHEST.getDefaultSize());
if (!pcm.isSet("inventory." + group + ".ender.slot")) return i;
for (int slot = 0; slot < invSize; slot++) {
final ItemStack is = pcm.getItemStack("inventory." + group + ".ender.slot." + slot);
Expand Down

0 comments on commit 5774397

Please sign in to comment.