Fixes code formatting

This commit is contained in:
Kristian Knarvik 2021-11-07 04:29:25 +01:00
parent 42e208402e
commit 527562bc60
3 changed files with 7 additions and 7 deletions

View File

@ -243,13 +243,13 @@ public class PortalRegistry {
} else {
//Check if network exists in the lookup list. If not, register the new network
if (!portalLookupByNetwork.containsKey(networkName)) {
Stargate.debug("register", String.format("Network %s not in lookupNamesNet, adding",
Stargate.debug("register", String.format("Network %s not in lookupNamesNet, adding",
portal.getNetwork()));
portalLookupByNetwork.put(networkName, new HashMap<>());
}
//Check if this network exists in the network list. If not, register the network
if (!allPortalNetworks.containsKey(networkName)) {
Stargate.debug("register", String.format("Network %s not in allPortalsNet, adding",
Stargate.debug("register", String.format("Network %s not in allPortalsNet, adding",
portal.getNetwork()));
allPortalNetworks.put(networkName, new ArrayList<>());
}

View File

@ -56,7 +56,7 @@ public class PortalSignDrawer {
/**
* Gets the sign for this sign drawer's portal
*
*
* @return <p>The sign of this sign drawer's portal</p>
*/
private Sign getSign() {
@ -103,7 +103,7 @@ public class PortalSignDrawer {
/**
* Clears all lines of a sign, but does not update the sign
*
*
* @param sign <p>The sign to clear</p>
*/
private void clearSign(Sign sign) {
@ -225,7 +225,7 @@ public class PortalSignDrawer {
* Draws the sign of an in-active portal
*
* <p>The sign for an in-active portal should display the right-click prompt and the network.</p>
*
*
* @param sign <p>The sign to re-draw</p>
*/
private void drawInactiveSign(Sign sign) {

View File

@ -208,7 +208,7 @@ public final class PortalFileHelper {
* <p>This will open always on portals, print info about loaded stargates and re-draw portal signs for loaded
* portals.</p>
*
* @param world <p>The world portals have been loaded for</p>
* @param world <p>The world portals have been loaded for</p>
* @param needsToSaveDatabase <p>Whether the portal database's file needs to be updated</p>
*/
private static void doPostLoadTasks(World world, boolean needsToSaveDatabase) {
@ -320,7 +320,7 @@ public final class PortalFileHelper {
new RelativeBlockVector(0, 0, 1), portal.getYaw());
if (!buttonLocation.equals(portal.getLocation().getSignLocation())) {
portal.getLocation().setButtonVector(control);
BlockLocation oldButtonLocation = portal.getStructure().getButton();
if (oldButtonLocation != null && !oldButtonLocation.equals(buttonLocation)) {
Stargate.addBlockChangeRequest(new BlockChangeRequest(oldButtonLocation, Material.AIR, null));