Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-24 18:10:08 +01:00
Don't paste ComplexEntityParts
Dieser Commit ist enthalten in:
Ursprung
b5f41501e4
Commit
4127e83749
@ -382,10 +382,11 @@ public class ForwardExtentCopy implements Operation {
|
||||
List<? extends Entity> entities;
|
||||
if (copyingEntities) {
|
||||
// filter players since they can't be copied
|
||||
entities = source.getEntities(region)
|
||||
.stream()
|
||||
.filter(e -> e.getType() != EntityTypes.PLAYER)
|
||||
.collect(Collectors.toList());
|
||||
entities = source.getEntities(region);
|
||||
entities.removeIf(entity -> {
|
||||
EntityProperties properties = entity.getFacet(EntityProperties.class);
|
||||
return properties != null && !properties.isPasteable();
|
||||
});
|
||||
} else {
|
||||
entities = Collections.emptyList();
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren