mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
let's actually not touch that
This commit is contained in:
parent
f649e3d6c3
commit
3754222582
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user