1
0
Fork 0

added player message; fixed item dup glitch

- removed item drop from ForceChunkActive since cancelling event already gives player back the item (cancel event prevents an exception)
This commit is contained in:
lightling 2019-09-19 21:03:02 -04:00
parent 6ef8a521c0
commit 67d6eccdec

View file

@ -325,8 +325,8 @@ public class BlockListener implements Listener
if (!this.gcPlugin.ForceChunkActive(chunk))
{
Block b = bpEvent.getBlock();
b.getWorld().dropItemNaturally(b.getLocation(), ChunkLoader.Setup());
b.setType(Material.AIR);
bpEvent.getPlayer().sendMessage("[GibsoniaCraft]: This chunk already has a Chunk Loader! Destroy it first.");
bpEvent.setCancelled(true);
}
}