Skip to content

Commit

Permalink
/spectate monkey patch
Browse files Browse the repository at this point in the history
Amusing
  • Loading branch information
5GameMaker authored Jun 15, 2024
1 parent 569533c commit 9c530c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/castle/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -115,4 +116,4 @@ public void init() {
if (--timer == 0) Events.fire(new GameOverEvent(Team.derelict));
}, 0f, 1f);
}
}
}

0 comments on commit 9c530c9

Please sign in to comment.