Dear md_5,
I have a dayz server. I use a resource-pack to make different loot containers. I changed the model of different saplings to different bags, wallets and so on. (I made this to replace chests and it's more interesting to find different loot).
I created a Bukkit scheduler and every 15 minutes it regenerates all the loot and places these containers. But there is a problem, when players going around my world, sometimes they can find dropped saplings near my loot containers.
I suspect that it caused because of unloading or/and loading chunks. And I have no idea how to fix this bug.
My event:
@EventHandler public void onLootContainerPhysics(BlockPhysicsEvent e) { for (LootUtils.LootBox lb : LootUtils.LootBox.values()) { if (e.getBlock().getTypeId() == lb.id[0] && e.getBlock().getData() == lb.id[1]) { e.setCancelled(true); return; } } }
I hope you can help me. Thank you in advance.