mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Potentially fixes #1769
This commit is contained in:
parent
ef54775ca7
commit
9a7ce84e1c
@ -5,17 +5,17 @@ import com.intellectualcrafters.plot.object.Location;
|
|||||||
import com.intellectualcrafters.plot.object.Plot;
|
import com.intellectualcrafters.plot.object.Plot;
|
||||||
import com.intellectualcrafters.plot.util.ChunkManager;
|
import com.intellectualcrafters.plot.util.ChunkManager;
|
||||||
import com.intellectualcrafters.plot.util.TaskManager;
|
import com.intellectualcrafters.plot.util.TaskManager;
|
||||||
|
import java.util.Optional;
|
||||||
|
import java.util.Set;
|
||||||
|
import java.util.function.Predicate;
|
||||||
import org.spongepowered.api.entity.Entity;
|
import org.spongepowered.api.entity.Entity;
|
||||||
import org.spongepowered.api.entity.living.Living;
|
import org.spongepowered.api.entity.living.Living;
|
||||||
import org.spongepowered.api.entity.living.animal.Animal;
|
import org.spongepowered.api.entity.living.animal.Animal;
|
||||||
import org.spongepowered.api.entity.living.monster.Monster;
|
import org.spongepowered.api.entity.living.monster.Monster;
|
||||||
|
import org.spongepowered.api.entity.living.player.Player;
|
||||||
import org.spongepowered.api.world.Chunk;
|
import org.spongepowered.api.world.Chunk;
|
||||||
import org.spongepowered.api.world.World;
|
import org.spongepowered.api.world.World;
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
import java.util.Set;
|
|
||||||
import java.util.function.Predicate;
|
|
||||||
|
|
||||||
public class SpongeChunkManager extends ChunkManager {
|
public class SpongeChunkManager extends ChunkManager {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -88,9 +88,11 @@ public class SpongeChunkManager extends ChunkManager {
|
|||||||
if ((x >= bx) && (x <= tx)) {
|
if ((x >= bx) && (x <= tx)) {
|
||||||
int z = loc.getBlockZ();
|
int z = loc.getBlockZ();
|
||||||
if ((z >= bz) && (z <= tz)) {
|
if ((z >= bz) && (z <= tz)) {
|
||||||
|
if (!(entity instanceof Player)) {
|
||||||
entity.remove();
|
entity.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user