From 82e0b000dc7c0f158bb9e3864698f78250f5bc11 Mon Sep 17 00:00:00 2001 From: EpicJosch <50040609+EpicJosch@users.noreply.github.com> Date: Tue, 23 Apr 2024 23:39:03 +0200 Subject: [PATCH] Fixed bug where the murderer gets teleported to the lobby to fast when arena ends (#72) --- .../java/plugily/projects/murdermystery/arena/ArenaEvents.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/plugily/projects/murdermystery/arena/ArenaEvents.java b/src/main/java/plugily/projects/murdermystery/arena/ArenaEvents.java index 1648d35e..1c8aef4e 100644 --- a/src/main/java/plugily/projects/murdermystery/arena/ArenaEvents.java +++ b/src/main/java/plugily/projects/murdermystery/arena/ArenaEvents.java @@ -421,7 +421,7 @@ public void onRespawn(PlayerRespawnEvent event) { event.setRespawnLocation(arena.getLobbyLocation()); return; } - if(arena.getArenaState() == ArenaState.ENDING || arena.getArenaState() == ArenaState.RESTARTING) { + if(arena.getArenaState() == ArenaState.RESTARTING) { event.setRespawnLocation(arena.getEndLocation()); return; }