mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-01-23 08:31:24 +01:00
Fix NPE
This commit is contained in:
parent
35e083042a
commit
973bae2d25
@ -758,7 +758,7 @@ public class DungeonsXL extends DREPlugin implements DungeonsAPI {
|
||||
|
||||
public InstanceWorld getInstanceWorld(World world) {
|
||||
for (InstanceWorld instance : instanceCache) {
|
||||
if (instance.getWorld().equals(world)) {
|
||||
if (world.equals(instance.getWorld())) {
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user