From 1269b7f00a222388ad75d67f4285b2d7aa9c9004 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Fri, 12 Jun 2026 22:16:00 +0200 Subject: [PATCH] Fix NoClipCommand --- .../src/de/steamwar/bausystem/features/util/NoClipCommand.java | 1 + 1 file changed, 1 insertion(+) diff --git a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/util/NoClipCommand.java b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/util/NoClipCommand.java index 19bffd3f..dd143f0a 100644 --- a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/util/NoClipCommand.java +++ b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/util/NoClipCommand.java @@ -139,6 +139,7 @@ public class NoClipCommand extends SWCommand implements Listener { @EventHandler(ignoreCancelled = true) public void onBlock(BlockCanBuildEvent event) { + if (event.getPlayer() == null) return; if (SWPlayer.of(event.getPlayer()).hasComponent(NoClipData.class)) { event.setBuildable(true); }