mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-27 13:15:55 +01:00
Ensure new movement location is not null, fixes #1256
This commit is contained in:
parent
3172af635e
commit
fcb1078f29
@ -818,10 +818,10 @@ public class PlayerListener implements Listener {
|
|||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onPlayerMove(PlayerMoveEvent evt) {
|
public void onPlayerMove(PlayerMoveEvent evt) {
|
||||||
if (evt.getFrom().getBlock().equals(evt.getTo().getBlock())) {
|
if (evt.getPlayer() == null || evt.getTo() == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (evt.getPlayer() == null) {
|
if (evt.getFrom().getBlock().equals(evt.getTo().getBlock())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (plugin.getDependencies().getCitizens() != null) {
|
if (plugin.getDependencies().getCitizens() != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user