Skip to content

Commit

Permalink
Revert "fix(radiation): 让玩家在进入是获得辐射免疫 (#907)"
Browse files Browse the repository at this point in the history
This reverts commit 7f9f9b2.
  • Loading branch information
StarWishsama authored Jul 4, 2024
1 parent 7f9f9b2 commit 47ebbd4
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.event.player.PlayerJoinEvent;

/**
* {@link RadioactivityListener} handles radioactivity level resets
Expand All @@ -26,10 +25,4 @@ public void onPlayerDeath(@Nonnull PlayerDeathEvent e) {
RadiationUtils.clearExposure(e.getEntity());
RadiationTask.addGracePeriod(e.getEntity());
}

@EventHandler
public void onPlayerJoin(@Nonnull PlayerJoinEvent e) {
RadiationUtils.clearExposure(e.getPlayer());
RadiationTask.addGracePeriod(e.getPlayer());
}
}

0 comments on commit 47ebbd4

Please sign in to comment.