Skip to content

Commit

Permalink
Fixes #363
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorinwasher committed Jun 10, 2024
1 parent 32700d7 commit 02d9b0a
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,13 @@ public void onPlayerInteract(PlayerInteractEvent event) {
}

PortalPosition portalPosition = registry.getPortalPosition(block.getLocation());
if (portalPosition == null) {
if (portalPosition != null) {
handleRelevantClickEvent(block, portalPosition, event);
return;
}

handleRelevantClickEvent(block, portalPosition, event);
if(Tag.ANVIL.isTagged(block.getType()) && registry.getPortal(block.getLocation()) != null){
event.setCancelled(true);
}
}

/**
Expand Down

0 comments on commit 02d9b0a

Please sign in to comment.