mirror of
https://github.com/BlazingGames/blazing-games-plugin.git
synced 2025-02-03 21:26:41 -05:00
implemented ivy collective's code suggestion
This commit is contained in:
parent
21fb7b509e
commit
314393bfd9
1 changed files with 4 additions and 5 deletions
|
@ -54,7 +54,10 @@ public class LodestoneInteractionEventListener implements Listener {
|
|||
signLines.add(Component.text(""));
|
||||
signLines.add(Component.text("^^^^^^^^^^^^^^^"));
|
||||
sendSignPacket(event.getPlayer(), signLocation, signLines);
|
||||
} else openTeleportAnchor(event.getPlayer());
|
||||
}
|
||||
else {
|
||||
event.getPlayer().openInventory(new TeleportAnchorInterface(BlazingGames.get(), event.getPlayer()).getInventory());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -89,8 +92,4 @@ public class LodestoneInteractionEventListener implements Listener {
|
|||
});
|
||||
}, 1);
|
||||
}
|
||||
|
||||
public static void openTeleportAnchor(Player player) {
|
||||
player.openInventory(new TeleportAnchorInterface(BlazingGames.get(), player).getInventory());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue