mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Don't paste ComplexEntityParts
This commit is contained in:
parent
b5f41501e4
commit
4127e83749
@ -382,10 +382,11 @@ public class ForwardExtentCopy implements Operation {
|
|||||||
List<? extends Entity> entities;
|
List<? extends Entity> entities;
|
||||||
if (copyingEntities) {
|
if (copyingEntities) {
|
||||||
// filter players since they can't be copied
|
// filter players since they can't be copied
|
||||||
entities = source.getEntities(region)
|
entities = source.getEntities(region);
|
||||||
.stream()
|
entities.removeIf(entity -> {
|
||||||
.filter(e -> e.getType() != EntityTypes.PLAYER)
|
EntityProperties properties = entity.getFacet(EntityProperties.class);
|
||||||
.collect(Collectors.toList());
|
return properties != null && !properties.isPasteable();
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
entities = Collections.emptyList();
|
entities = Collections.emptyList();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user