mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-18 01:46:11 +00:00
Final changes for the Vector update (probable fix for the "copying player entity" bug)
This commit is contained in:
parent
cd1d45b856
commit
271b45f3ba
@ -52,6 +52,7 @@ import org.bukkit.craftbukkit.v1_13_R2.CraftWorld;
|
||||
import org.bukkit.craftbukkit.v1_13_R2.block.CraftBlock;
|
||||
import org.bukkit.craftbukkit.v1_13_R2.block.data.CraftBlockData;
|
||||
import org.bukkit.craftbukkit.v1_13_R2.entity.CraftEntity;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
@ -328,7 +329,7 @@ public final class Spigot_v1_13_R2 extends CachedBukkitAdapter implements Bukkit
|
||||
public org.bukkit.entity.Entity createEntity(Location location, BaseEntity state) {
|
||||
checkNotNull(location);
|
||||
checkNotNull(state);
|
||||
|
||||
if (state.getType() == com.sk89q.worldedit.world.entity.EntityTypes.PLAYER) return null;
|
||||
CraftWorld craftWorld = ((CraftWorld) location.getWorld());
|
||||
WorldServer worldServer = craftWorld.getHandle();
|
||||
|
||||
|
@ -38,6 +38,7 @@ import com.sk89q.worldedit.math.Vector3;
|
||||
import com.sk89q.worldedit.math.transform.Transform;
|
||||
import com.sk89q.worldedit.util.Direction;
|
||||
import com.sk89q.worldedit.util.Direction.Flag;
|
||||
import com.sk89q.worldedit.world.entity.EntityTypes;
|
||||
import com.sk89q.worldedit.util.Location;
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
@ -97,7 +98,7 @@ public class ExtentEntityCopy implements EntityFunction {
|
||||
@Override
|
||||
public boolean apply(Entity entity) throws WorldEditException {
|
||||
BaseEntity state = entity.getState();
|
||||
if (state != null) {
|
||||
if (state != null && state.getType() != EntityTypes.PLAYER) {
|
||||
Location newLocation;
|
||||
Location location = entity.getLocation();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user