mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-28 03:57:37 +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
|
||||
public void onPlayerMove(PlayerMoveEvent evt) {
|
||||
if (evt.getFrom().getBlock().equals(evt.getTo().getBlock())) {
|
||||
if (evt.getPlayer() == null || evt.getTo() == null) {
|
||||
return;
|
||||
}
|
||||
if (evt.getPlayer() == null) {
|
||||
if (evt.getFrom().getBlock().equals(evt.getTo().getBlock())) {
|
||||
return;
|
||||
}
|
||||
if (plugin.getDependencies().getCitizens() != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user