mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
Fix portal creation NPE
This commit is contained in:
parent
d22bc7a8ee
commit
9c9bf05b95
@ -176,12 +176,12 @@ public class PlayerListener implements Listener {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (LockedDoor door : dGameWorld.getLockedDoors()) {
|
||||
if (clickedBlock.equals(door.getBlock()) || clickedBlock.equals(door.getAttachedBlock())) {
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
for (LockedDoor door : dGameWorld.getLockedDoors()) {
|
||||
if (clickedBlock.equals(door.getBlock()) || clickedBlock.equals(door.getAttachedBlock())) {
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user