Permalink
Browse files

Java on TC doesn't compile this code for some reason.

  • Loading branch information...
me4502 committed Oct 11, 2018
1 parent 495b9d0 commit 844971bca6dcbb95e3ee6e3cdd1a28f574b4d136
@@ -143,8 +143,7 @@ public boolean setBlock(Vector location, BlockStateHolder block) throws WorldEdi
List<String> 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)

0 comments on commit 844971b

Please sign in to comment.