Skip to content

Commit

Permalink
don't cancel snow events y <= 0
Browse files Browse the repository at this point in the history
  • Loading branch information
TehBrian committed Oct 31, 2023
1 parent b6b3a6c commit 9e31148
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9e31148

Please sign in to comment.