Skip to content

Commit

Permalink
allow cuboids to load with invalid world names
Browse files Browse the repository at this point in the history
to prevent notable loading issues, should fix #1991
  • Loading branch information
mcmonkey4eva committed Jul 12, 2019
1 parent 2b951df commit aed1803
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ public static dCuboid valueOf(String string, TagContext context) {
}
return null;
}
// Must have valid worlds
if (pos_1.getWorld() == null || pos_2.getWorld() == null) {
// Must have worlds
if (pos_1.getWorldName() == null || pos_2.getWorldName() == null) {
if (context == null || context.debug) {
dB.echoError("valueOf in dCuboid returning null (null worlds): '" + string + "'.");
}
Expand Down

0 comments on commit aed1803

Please sign in to comment.