mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-21 20:56:45 +01:00
fix: npe thrown in entity spawn listener (#3399)
This commit is contained in:
parent
2559c889e2
commit
9f4af889f7
@ -75,8 +75,7 @@ public class EntitySpawnListener implements Listener {
|
||||
|
||||
public static void testCreate(final Entity entity) {
|
||||
@NonNull World world = entity.getWorld();
|
||||
if (areaName.equals(world.getName())) {
|
||||
} else {
|
||||
if (!world.getName().equals(areaName)) {
|
||||
areaName = world.getName();
|
||||
hasPlotArea = PlotSquared.get().getPlotAreaManager().hasPlotArea(areaName);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user