diff --git a/Plugin/src/main/java/com/willfp/ecoenchants/events/naturalexpgainevent/NaturalExpGainListeners.java b/Plugin/src/main/java/com/willfp/ecoenchants/events/naturalexpgainevent/NaturalExpGainListeners.java index a53d905b..30df3c11 100644 --- a/Plugin/src/main/java/com/willfp/ecoenchants/events/naturalexpgainevent/NaturalExpGainListeners.java +++ b/Plugin/src/main/java/com/willfp/ecoenchants/events/naturalexpgainevent/NaturalExpGainListeners.java @@ -18,6 +18,7 @@ public class NaturalExpGainListeners implements Listener { NaturalExpGainBuilder toRemove = null; for (NaturalExpGainBuilder searchBuilder : events) { + if(!searchBuilder.getLoc().getWorld().equals(event.getPlayer().getLocation().getWorld())) continue; if(searchBuilder.getReason().equals(NaturalExpGainBuilder.BuildReason.BOTTLE) && searchBuilder.getLoc().distanceSquared(event.getPlayer().getLocation()) > 52) toRemove = searchBuilder; }