Fixed ship jumping to overworld when landing on virtual objects
This commit is contained in:
parent
3c6a33da25
commit
f0909c5b4a
1 changed files with 7 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue