diff options
Diffstat (limited to 'src/main/java')
| -rw-r--r-- | src/main/java/world/anhgelus/manhunt/Manhunt.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/world/anhgelus/manhunt/Manhunt.java b/src/main/java/world/anhgelus/manhunt/Manhunt.java index 6499f5a..09df3e6 100644 --- a/src/main/java/world/anhgelus/manhunt/Manhunt.java +++ b/src/main/java/world/anhgelus/manhunt/Manhunt.java @@ -96,7 +96,10 @@ public class Manhunt implements ModInitializer { ServerPlayerEvents.AFTER_RESPAWN.register((oldPlayer, newPlayer, alive) -> { if (alive) return; final UUID uuid = oldPlayer.getUuid(); - if (!speedrunners.contains(uuid)) return; + if (hunters.contains(uuid)) { + newPlayer.giveItemStack(new ItemStack(Items.COMPASS)); + return; + } speedrunners.remove(uuid); if (!speedrunners.isEmpty()) return; for (final ServerPlayerEntity player : newPlayer.server.getPlayerManager().getPlayerList()) { |
