Fixes code formatting
This commit is contained in:
parent
42e208402e
commit
527562bc60
@ -243,13 +243,13 @@ public class PortalRegistry {
|
|||||||
} else {
|
} else {
|
||||||
//Check if network exists in the lookup list. If not, register the new network
|
//Check if network exists in the lookup list. If not, register the new network
|
||||||
if (!portalLookupByNetwork.containsKey(networkName)) {
|
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()));
|
portal.getNetwork()));
|
||||||
portalLookupByNetwork.put(networkName, new HashMap<>());
|
portalLookupByNetwork.put(networkName, new HashMap<>());
|
||||||
}
|
}
|
||||||
//Check if this network exists in the network list. If not, register the network
|
//Check if this network exists in the network list. If not, register the network
|
||||||
if (!allPortalNetworks.containsKey(networkName)) {
|
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()));
|
portal.getNetwork()));
|
||||||
allPortalNetworks.put(networkName, new ArrayList<>());
|
allPortalNetworks.put(networkName, new ArrayList<>());
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ public class PortalSignDrawer {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the sign for this sign drawer's portal
|
* Gets the sign for this sign drawer's portal
|
||||||
*
|
*
|
||||||
* @return <p>The sign of this sign drawer's portal</p>
|
* @return <p>The sign of this sign drawer's portal</p>
|
||||||
*/
|
*/
|
||||||
private Sign getSign() {
|
private Sign getSign() {
|
||||||
@ -103,7 +103,7 @@ public class PortalSignDrawer {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Clears all lines of a sign, but does not update the sign
|
* Clears all lines of a sign, but does not update the sign
|
||||||
*
|
*
|
||||||
* @param sign <p>The sign to clear</p>
|
* @param sign <p>The sign to clear</p>
|
||||||
*/
|
*/
|
||||||
private void clearSign(Sign sign) {
|
private void clearSign(Sign sign) {
|
||||||
@ -225,7 +225,7 @@ public class PortalSignDrawer {
|
|||||||
* Draws the sign of an in-active portal
|
* 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>
|
* <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>
|
* @param sign <p>The sign to re-draw</p>
|
||||||
*/
|
*/
|
||||||
private void drawInactiveSign(Sign sign) {
|
private void drawInactiveSign(Sign sign) {
|
||||||
|
@ -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
|
* <p>This will open always on portals, print info about loaded stargates and re-draw portal signs for loaded
|
||||||
* portals.</p>
|
* 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>
|
* @param needsToSaveDatabase <p>Whether the portal database's file needs to be updated</p>
|
||||||
*/
|
*/
|
||||||
private static void doPostLoadTasks(World world, boolean needsToSaveDatabase) {
|
private static void doPostLoadTasks(World world, boolean needsToSaveDatabase) {
|
||||||
@ -320,7 +320,7 @@ public final class PortalFileHelper {
|
|||||||
new RelativeBlockVector(0, 0, 1), portal.getYaw());
|
new RelativeBlockVector(0, 0, 1), portal.getYaw());
|
||||||
if (!buttonLocation.equals(portal.getLocation().getSignLocation())) {
|
if (!buttonLocation.equals(portal.getLocation().getSignLocation())) {
|
||||||
portal.getLocation().setButtonVector(control);
|
portal.getLocation().setButtonVector(control);
|
||||||
|
|
||||||
BlockLocation oldButtonLocation = portal.getStructure().getButton();
|
BlockLocation oldButtonLocation = portal.getStructure().getButton();
|
||||||
if (oldButtonLocation != null && !oldButtonLocation.equals(buttonLocation)) {
|
if (oldButtonLocation != null && !oldButtonLocation.equals(buttonLocation)) {
|
||||||
Stargate.addBlockChangeRequest(new BlockChangeRequest(oldButtonLocation, Material.AIR, null));
|
Stargate.addBlockChangeRequest(new BlockChangeRequest(oldButtonLocation, Material.AIR, null));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user