Actually filter out players, not everything else

This commit is contained in:
Cygaan 2019-01-28 17:31:29 +01:00
parent 88b665f141
commit d48ea909b5

View File

@ -353,7 +353,7 @@ 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"))
.collect(Collectors.toList());
} else {
entities = new ArrayList<>();