This commit is contained in:
Brianna O'Keefe 2018-12-21 13:29:33 -05:00
parent 1a0e4d44a8
commit a410941506

View File

@ -112,7 +112,7 @@ public abstract class AbstractGUI implements Listener {
}
public void init(String title, int slots) {
if (inventory == null) {
if (inventory == null || inventory.getSize() != slots) {
this.inventory = Bukkit.getServer().createInventory(new GUIHolder(), slots, ChatColor.translateAlternateColorCodes('&', title));
registerClickables();
registerOnCloses();