From 76ecc8e6e4d870dd76f76e171c258ab1b88623fd Mon Sep 17 00:00:00 2001 From: yoyosource Date: Wed, 17 Jul 2024 14:22:43 +0200 Subject: [PATCH] Add NoGravityCommand --- .../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 52e9fe91..e52591dc 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.PRIMED_TNT) return; + if (event.getEntityType() != EntityType.PLAYER) return; if (getMode(Region.getRegion(event.getLocation())) == NoGravityMode.ACTIVE) { event.getEntity().setGravity(false); }