Fix null worlds blowing up player money; Closes #373

This commit is contained in:
Eric Stokes 2012-01-05 22:16:34 -07:00
parent 6861021c7a
commit 79c06b5c42

View File

@ -126,6 +126,12 @@ public class PermissionTools {
} }
} }
// If the toWorld isn't controlled by MV,
// We don't care.
if(toWorld == null) {
return true;
}
// Only check payments if it's a different world: // Only check payments if it's a different world:
if (!toWorld.equals(fromWorld)) { if (!toWorld.equals(fromWorld)) {
// If the player does not have to pay, return now. // If the player does not have to pay, return now.