mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 21:48:43 +01:00
Fix portal creation NPE
This commit is contained in:
parent
d22bc7a8ee
commit
9c9bf05b95
@ -176,7 +176,6 @@ public class PlayerListener implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
for (LockedDoor door : dGameWorld.getLockedDoors()) {
|
for (LockedDoor door : dGameWorld.getLockedDoors()) {
|
||||||
if (clickedBlock.equals(door.getBlock()) || clickedBlock.equals(door.getAttachedBlock())) {
|
if (clickedBlock.equals(door.getBlock()) || clickedBlock.equals(door.getAttachedBlock())) {
|
||||||
@ -185,6 +184,7 @@ public class PlayerListener implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Check Portals
|
// Check Portals
|
||||||
if (event.getItem() != null) {
|
if (event.getItem() != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user