mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-29 05:55:48 +01:00
Fix null worlds blowing up player money; Closes #373
This commit is contained in:
parent
6861021c7a
commit
79c06b5c42
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user