Skip to content

Commit

Permalink
Added getFrom()
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanMishin1 committed Jul 9, 2024
1 parent 3291570 commit 9d2b4e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public void onPortalCreate(PortalCreateEvent e) {

@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
public void portal(PlayerPortalEvent e){
if (!Galactifun.instance().getConfig().getBoolean("worlds.allow-nether-portals") && getAlienWorld(e.getWorld()) != null){
if (!Galactifun.instance().getConfig().getBoolean("worlds.allow-nether-portals") && getAlienWorld(e.getFrom().getWorld()) != null){
e.setCancelled(true);
}
}
Expand Down

0 comments on commit 9d2b4e3

Please sign in to comment.