Adds more debug output during post load tasks
This commit is contained in:
@@ -237,11 +237,15 @@ public final class PortalFileHelper {
|
|||||||
portalCount, openCount));
|
portalCount, openCount));
|
||||||
|
|
||||||
//Re-draw the signs in case a bug in the config prevented the portal from loading and has been fixed since
|
//Re-draw the signs in case a bug in the config prevented the portal from loading and has been fixed since
|
||||||
|
Stargate.debug("PortalFileHelper::doPostLoadTasks::update",
|
||||||
|
String.format("Updating portal signs/buttons for %s", world));
|
||||||
for (Portal portal : PortalRegistry.getAllPortals()) {
|
for (Portal portal : PortalRegistry.getAllPortals()) {
|
||||||
if (portal.isRegistered() && portal.getWorld() != null && portal.getWorld().equals(world) &&
|
if (portal.isRegistered() && portal.getWorld() != null && portal.getWorld().equals(world) &&
|
||||||
world.getWorldBorder().isInside(portal.getSignLocation())) {
|
world.getWorldBorder().isInside(portal.getSignLocation())) {
|
||||||
portal.drawSign();
|
portal.drawSign();
|
||||||
updatePortalButton(portal);
|
updatePortalButton(portal);
|
||||||
|
Stargate.debug("UpdateSignsButtons", String.format("Updated sign and button for portal %s",
|
||||||
|
portal.getName()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Save the portals to disk to update with any changes
|
//Save the portals to disk to update with any changes
|
||||||
|
Reference in New Issue
Block a user