From 844971bca6dcbb95e3ee6e3cdd1a28f574b4d136 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Thu, 11 Oct 2018 22:04:16 +1000 Subject: [PATCH] Java on TC doesn't compile this code for some reason. --- .../sk89q/worldedit/extent/transform/BlockTransformExtent.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/transform/BlockTransformExtent.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/transform/BlockTransformExtent.java index d776be6b2..6c1c93302 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/transform/BlockTransformExtent.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/transform/BlockTransformExtent.java @@ -143,8 +143,7 @@ public class BlockTransformExtent extends AbstractDelegateExtent { List directionalProperties = properties.stream() .filter(prop -> prop instanceof BooleanProperty) .filter(prop -> directionNames.contains(prop.getName())) - .map(prop -> (BooleanProperty) prop) - .filter(block::getState) + .filter(property -> (Boolean) block.getState(property)) .map(Property::getName) .map(String::toUpperCase) .map(Direction::valueOf)