From 7b9e14c7f5a50e6033af7f95a048f0ea29e339df Mon Sep 17 00:00:00 2001 From: Goodstuff4UonYT Date: Thu, 8 Jun 2017 23:07:59 +0200 Subject: [PATCH 1/2] Nukkit 1.1 Fix --- .../java/com/boydti/fawe/nukkit/listener/BrushListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nukkit/src/main/java/com/boydti/fawe/nukkit/listener/BrushListener.java b/nukkit/src/main/java/com/boydti/fawe/nukkit/listener/BrushListener.java index 50abe07d..ec389007 100644 --- a/nukkit/src/main/java/com/boydti/fawe/nukkit/listener/BrushListener.java +++ b/nukkit/src/main/java/com/boydti/fawe/nukkit/listener/BrushListener.java @@ -76,7 +76,7 @@ public class BrushListener implements Listener { public void onPlayerInteract(final PlayerInteractEvent event) { Player nukkitPlayer = event.getPlayer(); if (nukkitPlayer.isSneaking()) { - if (event.getAction() == PlayerInteractEvent.PHYSICAL) { + if (event.getAction() == PlayerInteractEvent.Action.PHYSICAL) { return; } FawePlayer fp = FawePlayer.wrap(nukkitPlayer); From 822eb0bae2ea110e0f2fcdf33112f0b42b44714d Mon Sep 17 00:00:00 2001 From: Aikar Date: Thu, 8 Jun 2017 23:23:23 -0400 Subject: [PATCH 2/2] Fix Bukkit 1.12 support --- .../java/com/boydti/fawe/bukkit/v1_12/NMSRegistryDumper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_12/NMSRegistryDumper.java b/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_12/NMSRegistryDumper.java index b5734c66..58df4f7d 100644 --- a/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_12/NMSRegistryDumper.java +++ b/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_12/NMSRegistryDumper.java @@ -239,7 +239,7 @@ public class NMSRegistryDumper { map.put("unpushable", m.getPushReaction() == EnumPistonReaction.BLOCK); map.put("adventureModeExempt", getField(m, Material.class, "isAdventureModeExempt", "Q")); //map.put("mapColor", rgb(m.getMaterialMapColor().colorValue)); - map.put("ambientOcclusionLightValue", b.s(bs) ? 0.2F:1.0F); + map.put("ambientOcclusionLightValue", b.isOccluding(bs) ? 0.2F:1.0F); map.put("grassBlocking", false); // idk what this property was originally supposed to be...grass uses a combination of light values to check growth return map; }