mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-22 07:21:58 +01:00
Allows a valid location to be set. Fixes #1579.
Credit to tuskiomi for discovering this issue.
This commit is contained in:
parent
c37dd803c8
commit
28da4aac2f
@ -184,11 +184,7 @@ public class ExactDestination implements MVDestination {
|
||||
* @param location The {@link Location}.
|
||||
*/
|
||||
public void setDestination(Location location) {
|
||||
if (location != null) {
|
||||
this.location = location;
|
||||
this.isValid = true;
|
||||
}
|
||||
this.isValid = false;
|
||||
this.isValid = (this.location = location) != null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user