From bd06bce3dc0e15df8541600a71a5e2f88b55ddd9 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Wed, 17 Jul 2024 14:25:01 +0200 Subject: [PATCH] Fix NoGravityListener --- .../steamwar/bausystem/features/region/NoGravityListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/region/NoGravityListener.java b/BauSystem_Main/src/de/steamwar/bausystem/features/region/NoGravityListener.java index e52591dc..f86403f9 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/region/NoGravityListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/region/NoGravityListener.java @@ -40,7 +40,7 @@ public class NoGravityListener implements Listener, ScoreboardElement { @EventHandler public void onEntitySpawn(EntitySpawnEvent event) { - if (event.getEntityType() != EntityType.PLAYER) return; + if (event.getEntityType() == EntityType.PLAYER) return; if (getMode(Region.getRegion(event.getLocation())) == NoGravityMode.ACTIVE) { event.getEntity().setGravity(false); }