Fixed ship jumping to overworld when landing on virtual objects

This commit is contained in:
Unknown 2017-12-28 13:38:22 +01:00
parent 3c6a33da25
commit f0909c5b4a

View file

@ -873,6 +873,13 @@ public class JumpSequencer extends AbstractSequencer {
return false;
}
// is it defined?
if (celestialObject.isVirtual()) {
reason.append(String.format("Sorry, we can't go to %s. This is a virtual celestial object. It's either a decorative planet or a server misconfiguration",
celestialObject.getDisplayName()));
return false;
}
// validate world availability
targetWorld = MinecraftServer.getServer().worldServerForDimension(celestialObject.dimensionId);
if (targetWorld == null) {