From 24af26324ade435bcf79cff09b1cf123daf71c5f Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Mon, 20 Sep 2021 19:23:57 +0200 Subject: [PATCH] Renames some methods to prevent confusion --- .../java/net/knarcraft/stargate/portal/PortalHandler.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/knarcraft/stargate/portal/PortalHandler.java b/src/main/java/net/knarcraft/stargate/portal/PortalHandler.java index 8996cca..f12cf3d 100644 --- a/src/main/java/net/knarcraft/stargate/portal/PortalHandler.java +++ b/src/main/java/net/knarcraft/stargate/portal/PortalHandler.java @@ -784,7 +784,7 @@ public class PortalHandler { File database = new File(location, world.getName() + ".db"); if (database.exists()) { - return loadGates(world, database); + return loadStarGates(world, database); } else { Stargate.logger.info(Stargate.getString("prefix") + "{" + world.getName() + "} No stargates for world "); } @@ -798,7 +798,7 @@ public class PortalHandler { * @param database

The database file containing the gates

* @return

True if the gates were loaded successfully

*/ - private static boolean loadGates(World world, File database) { + private static boolean loadStarGates(World world, File database) { int lineIndex = 0; try { Scanner scanner = new Scanner(database); @@ -818,7 +818,7 @@ public class PortalHandler { continue; } - loadGate(portalData, world, lineIndex); + loadStarGate(portalData, world, lineIndex); } scanner.close(); @@ -843,7 +843,7 @@ public class PortalHandler { * @param world

The world to create the portal in

* @param lineIndex

The line index to report in case the user needs to fix an error

*/ - private static void loadGate(String[] portalData, World world, int lineIndex) { + private static void loadStarGate(String[] portalData, World world, int lineIndex) { //Load min. required portal data String name = portalData[0]; BlockLocation sign = new BlockLocation(world, portalData[1]);