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:
parent
6ef8a521c0
commit
67d6eccdec
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue