Skip to content

Commit

Permalink
Update src/main/java/io/github/thebusybiscuit/slimefun4/implementatio…
Browse files Browse the repository at this point in the history
…n/tasks/armor/RadiationTask.java

Co-authored-by: J3fftw <[email protected]>
  • Loading branch information
HoosierTransfer and J3fftw1 committed Aug 26, 2024
1 parent 04bf0b5 commit f93f0b3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ protected void onPlayerTick(Player p, PlayerProfile profile) {
int exposureLevelAfter = RadiationUtils.getExposure(p);

Slimefun.runSync(() -> {
RadiationDamageEvent e = new RadiationDamageEvent(p, exposureLevelAfter);
Bukkit.getPluginManager().callEvent(e);
RadiationDamageEvent event = new RadiationDamageEvent(p, exposureLevelAfter);
Bukkit.getPluginManager().callEvent(event);

if (e.isCancelled()) {
if (event.isCancelled()) {
return;
}

Expand Down

0 comments on commit f93f0b3

Please sign in to comment.