From 9e31148b8218c384e6472785d530b6b6b1fb9111 Mon Sep 17 00:00:00 2001 From: TehBrian Date: Mon, 30 Oct 2023 07:44:04 -0400 Subject: [PATCH] don't cancel snow events y <= 0 --- .../tehbrian/buildersutilities/setting/SettingsListener.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/dev/tehbrian/buildersutilities/setting/SettingsListener.java b/src/main/java/dev/tehbrian/buildersutilities/setting/SettingsListener.java index b6787f2..522435e 100644 --- a/src/main/java/dev/tehbrian/buildersutilities/setting/SettingsListener.java +++ b/src/main/java/dev/tehbrian/buildersutilities/setting/SettingsListener.java @@ -59,8 +59,7 @@ public void onSpectate(final PlayerStartSpectatingEntityEvent event) { public void onBlockPhysics(final BlockPhysicsEvent event) { final Block block = event.getBlock(); - if (block.getLocation().add(0, -1, 0).getBlock().getType().name().toLowerCase().contains("grass_block") - && block.getLocation().getBlockY() > 0) { + if (block.getLocation().add(0, -1, 0).getBlock().getType().name().toLowerCase().contains("grass_block")) { if (event.getSourceBlock().getType() == Material.AIR && event.getChangedType() == Material.AIR) { return; }