mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-12 22:03:53 +00:00
let's actually not touch that
This commit is contained in:
@ -221,7 +221,14 @@ public class EventBlocker extends FreedomService
|
|||||||
{
|
{
|
||||||
BlockStateMeta blockStateMeta = (BlockStateMeta)item.getItemMeta();
|
BlockStateMeta blockStateMeta = (BlockStateMeta)item.getItemMeta();
|
||||||
ShulkerBox shulkerBox = (ShulkerBox)blockStateMeta.getBlockState();
|
ShulkerBox shulkerBox = (ShulkerBox)blockStateMeta.getBlockState();
|
||||||
shulkerBox.getInventory().clear();
|
for(ItemStack item : shulkerBox.getInventory().getContents)
|
||||||
|
{
|
||||||
|
if(item != null)
|
||||||
|
{
|
||||||
|
event.setCancelled(true);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user