let's actually not touch that

This commit is contained in:
Lemon 2019-01-12 02:58:12 +05:00 committed by GitHub
parent f649e3d6c3
commit 3754222582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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