diff --git a/plugin.yml b/plugin.yml index 5084e37b..f77a9632 100644 --- a/plugin.yml +++ b/plugin.yml @@ -3,7 +3,7 @@ name: NoCheat author: Evenprime main: cc.co.evenprime.bukkit.nocheat.NoCheat -version: 1.01 +version: 1.01a commands: nocheat: diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/AirbuildCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/AirbuildCheck.java index 66c7a067..026d1e0f 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/AirbuildCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/AirbuildCheck.java @@ -44,7 +44,7 @@ public class AirbuildCheck extends Check { if(skipCheck(event.getPlayer())) return; // Are all 6 sides "air-blocks" -> cancel the event - if(event.getBlockAgainst().getType() == Material.AIR) { + if( event.getBlockAgainst().getType() == Material.AIR && event.getBlockPlaced().getType() != Material.AIR ) { final AirbuildData data = AirbuildData.get(event.getPlayer()); final Player p = event.getPlayer();