Fix block breaking
This commit is contained in:
parent
9c7e83d5af
commit
ea53d6a227
@ -107,14 +107,14 @@ public class CakePlayerModule extends CakeModule
|
||||
|
||||
Block block = event.getBlock();
|
||||
|
||||
event.setCancelled(true);
|
||||
|
||||
if (UtilBlock.airFoliage(event.getBlock()))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
block.setType(Material.AIR);
|
||||
}
|
||||
else if (!_placedBlocks.contains(block))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
event.getPlayer().sendMessage(F.main("Game", "You cannot break blocks that have not been placed by players."));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user