From a636a30e9f618cec37416f0d81ac3ca927a73660 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Mon, 1 Apr 2019 20:39:49 +1100 Subject: [PATCH] Dont try removing player entity --- .../main/java/com/boydti/fawe/bukkit/v0/BukkitChunk_All.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/v0/BukkitChunk_All.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/v0/BukkitChunk_All.java index 19ac5c9c0..d17db69f8 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/v0/BukkitChunk_All.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/v0/BukkitChunk_All.java @@ -22,6 +22,7 @@ import java.util.Map; import java.util.Set; import java.util.UUID; +import com.sk89q.worldedit.entity.Player; import com.sk89q.worldedit.world.block.BaseBlock; import com.sk89q.worldedit.world.block.BlockStateHolder; import com.sk89q.worldedit.world.block.BlockType; @@ -157,7 +158,7 @@ public class BukkitChunk_All extends IntFaweChunk { HashSet entsToRemove = this.getEntityRemoves(); if (!entsToRemove.isEmpty()) { for (Entity entity : chunk.getEntities()) { - if (entsToRemove.contains(entity.getUniqueId())) { + if (entsToRemove.contains(entity.getUniqueId()) && !(entity instanceof Player)) { entity.remove(); } }