Skip to content

Commit

Permalink
Prevent multiple listener registration (#1463)
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Herrera <[email protected]>
  • Loading branch information
Pablete1234 authored Dec 25, 2024
1 parent 9fb92ca commit 4428b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/tc/oc/pgm/match/MatchImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ protected MatchImpl(String id, MapContext map, World world) {
this.tickables = new EnumMap<>(MatchScope.class);
for (MatchScope scope : MatchScope.values()) {
executors.put(scope, new BukkitExecutorService(PGM.get(), false));
listeners.put(scope, new LinkedList<>());
listeners.put(scope, new LinkedHashSet<>());
tickables.put(scope, new CopyOnWriteArraySet<>());
}
this.tick = new AtomicReference<>(null);
Expand Down

0 comments on commit 4428b14

Please sign in to comment.