Merge pull request #34 from Cygaan/master

Fix copying entities
This commit is contained in:
Jesse Boyd 2019-04-01 13:42:59 +11:00 committed by GitHub
commit 603df92f79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<>();