mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2024-12-31 18:17:49 +01:00
Bugfixes
This commit is contained in:
parent
b0c098a508
commit
77e152077b
@ -188,6 +188,8 @@ public List<ItemStack> setSize(int newSize)
|
||||
{
|
||||
bp.setItem(i, itemStackArray[i]);
|
||||
}
|
||||
setChanged();
|
||||
save(); // Make sure the new inventory is saved
|
||||
size = newSize;
|
||||
for(Entry<Player, Boolean> e : opened.entrySet())
|
||||
{
|
||||
|
@ -61,7 +61,7 @@ public void onInventoryClick(InventoryClickEvent event)
|
||||
@EventHandler(ignoreCancelled = true)
|
||||
public void onInventoryOpen(InventoryOpenEvent event)
|
||||
{
|
||||
if(event.getInventory().getHolder().getClass().getName().toLowerCase().contains("shulker"))
|
||||
if(event.getInventory() != null && event.getInventory().getHolder() != null && event.getInventory().getHolder().getClass().getName().toLowerCase().contains("shulker"))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user