Skip to content

Commit

Permalink
Fix EvtExperienceSpawn firing more than once (#2751)
Browse files Browse the repository at this point in the history
* EvtExperienceSpawn - fix event firing more than once

* EvtExperienceSpawn - fix line endings

Co-authored-by: bensku <bmi@iki.fi>
  • Loading branch information
ShaneBeee and bensku authored Feb 29, 2020
1 parent c454b46 commit f0100a7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ private static void registerExecutor() {
return;
for (final Class<? extends Event> c : new Class[] {BlockExpEvent.class, EntityDeathEvent.class, ExpBottleEvent.class, PlayerFishEvent.class})
Bukkit.getPluginManager().registerEvent(c, new Listener() {}, SkriptConfig.defaultEventPriority.value(), executor, Skript.getInstance(), true);
registeredExecutor = true;
}

private final static EventExecutor executor = new EventExecutor() {
Expand Down

0 comments on commit f0100a7

Please sign in to comment.