This commit is contained in:
ZeroEpoch1969
2019-01-11 20:05:12 -07:00
parent 3754222582
commit 93d4c9654e
13 changed files with 136 additions and 60 deletions

View File

@ -221,12 +221,12 @@ public class EventBlocker extends FreedomService
{
BlockStateMeta blockStateMeta = (BlockStateMeta)item.getItemMeta();
ShulkerBox shulkerBox = (ShulkerBox)blockStateMeta.getBlockState();
for(ItemStack item : shulkerBox.getInventory().getContents)
for (ItemStack itemStack : shulkerBox.getInventory().getContents())
{
if(item != null)
if (itemStack != null)
{
event.setCancelled(true);
break;
event.setCancelled(true);
break;
}
}
}