Fixes a couple of bugs which prevented portals using spaces in the name from being properly connected
This commit is contained in:
parent
351d1762e7
commit
a84210d550
@ -98,7 +98,7 @@ public class PortalActivator {
|
||||
* @param destination <p>The new destination of this portal activator's portal</p>
|
||||
*/
|
||||
public void setDestination(Portal destination) {
|
||||
setDestination(destination.getCleanName());
|
||||
setDestination(destination.getName());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -257,7 +257,8 @@ public class PortalSignDrawer {
|
||||
setLine(sign, 2, highlightColor + "(" + mainColor + fixColor(portal.getNetwork()) +
|
||||
highlightColor + ")");
|
||||
}
|
||||
Portal destination = PortalHandler.getByName(portal.getDestinationName(), portal.getNetwork());
|
||||
Portal destination = PortalHandler.getByName(Portal.cleanString(portal.getDestinationName()),
|
||||
portal.getNetwork());
|
||||
if (destination == null && !portal.getOptions().isRandom()) {
|
||||
setLine(sign, 3, errorColor + Stargate.getString("signDisconnected"));
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user