This commit is contained in:
Jesse Boyd 2017-06-09 17:09:05 +10:00
commit da3f1eabda
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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<Object> fp = FawePlayer.wrap(nukkitPlayer);