Treat CAVE_AIR and VOID_AIR the same as AIR

This commit is contained in:
Brokkonaut
2018-07-29 15:37:28 +02:00
parent 905c25a943
commit 0a7ea8e747
11 changed files with 39 additions and 28 deletions
@@ -50,7 +50,7 @@ public class LoggingUtil {
// Run this check to avoid false positives
if (!BukkitUtils.getFallingEntityKillers().contains(finalLoc.getBlock().getType())) {
finalLoc.add(0, up, 0); // Add this here after checking for block breakers
if (finalLoc.getBlock().getType() == Material.AIR) {
if (BukkitUtils.isEmpty(finalLoc.getBlock().getType())) {
consumer.queueBlockPlace(actor, finalLoc, checkBlock.getBlockData());
} else {
consumer.queueBlockReplace(actor, finalLoc, finalLoc.getBlock().getBlockData(), checkBlock.getBlockData());