refactor: Satisfy Semgrep

This commit is contained in:
NotMyFault
2021-12-22 02:06:07 +01:00
parent 3da1e9255a
commit af2613202d
2 changed files with 3 additions and 5 deletions

View File

@ -75,7 +75,7 @@ public class EntitySpawnListener implements Listener {
public static void testCreate(final Entity entity) {
@NonNull World world = entity.getWorld();
if (areaName == world.getName()) {
if (areaName.equals(world.getName())) {
} else {
areaName = world.getName();
hasPlotArea = PlotSquared.get().getPlotAreaManager().hasPlotArea(areaName);