mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-18 01:46:11 +00:00
Only copy entities from within the region
This commit is contained in:
parent
d48ea909b5
commit
6046fa1cec
@ -353,7 +353,8 @@ public class ForwardExtentCopy implements Operation {
|
||||
entities = source.getEntities()
|
||||
.stream()
|
||||
.filter(entity -> entity.getState() != null &&
|
||||
!entity.getState().getType().getId().equals("minecraft:player"))
|
||||
!entity.getState().getType().getId().equals("minecraft:player") &&
|
||||
region.contains(entity.getLocation().toVector()))
|
||||
.collect(Collectors.toList());
|
||||
} else {
|
||||
entities = new ArrayList<>();
|
||||
|
Loading…
Reference in New Issue
Block a user