From 9c530c93afe308cc6f4e968d6badb9b531d6834c Mon Sep 17 00:00:00 2001 From: Buj <42136194+5GameMaker@users.noreply.github.com> Date: Sat, 15 Jun 2024 23:42:16 +0700 Subject: [PATCH] /spectate monkey patch Amusing --- src/main/java/castle/Main.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/castle/Main.java b/src/main/java/castle/Main.java index 57b8cf0..c79c7a6 100644 --- a/src/main/java/castle/Main.java +++ b/src/main/java/castle/Main.java @@ -62,6 +62,7 @@ public void init() { }); Events.on(TapEvent.class, event -> { + if (event.player.team().core() == null) return; var data = PlayerData.getData(event.player); if (data == null) return; // Why @@ -115,4 +116,4 @@ public void init() { if (--timer == 0) Events.fire(new GameOverEvent(Team.derelict)); }, 0f, 1f); } -} \ No newline at end of file +}