mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-12 04:23:54 +00:00
Prevent players and complex parts being pasted in schematics.
This commit is contained in:
@ -30,7 +30,9 @@ import org.spongepowered.api.entity.hanging.ItemFrame;
|
||||
import org.spongepowered.api.entity.hanging.Painting;
|
||||
import org.spongepowered.api.entity.living.*;
|
||||
import org.spongepowered.api.entity.living.animal.Animal;
|
||||
import org.spongepowered.api.entity.living.complex.ComplexLivingPart;
|
||||
import org.spongepowered.api.entity.living.golem.Golem;
|
||||
import org.spongepowered.api.entity.living.player.Player;
|
||||
import org.spongepowered.api.entity.projectile.Projectile;
|
||||
import org.spongepowered.api.entity.vehicle.Boat;
|
||||
import org.spongepowered.api.entity.vehicle.minecart.Minecart;
|
||||
@ -139,4 +141,9 @@ public class SpongeEntityType implements EntityType {
|
||||
public boolean isArmorStand() {
|
||||
return entity instanceof ArmorStand;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPasteable() {
|
||||
return !(entity instanceof Player || entity instanceof ComplexLivingPart);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user