geforkt von Mirrors/FastAsyncWorldEdit
Not all "north/south/east/west" are boolean
Dieser Commit ist enthalten in:
Ursprung
d1cb6e2156
Commit
495b9d07b5
@ -24,6 +24,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
|
||||
import com.google.common.collect.Sets;
|
||||
import com.sk89q.worldedit.Vector;
|
||||
import com.sk89q.worldedit.WorldEditException;
|
||||
import com.sk89q.worldedit.registry.state.BooleanProperty;
|
||||
import com.sk89q.worldedit.world.block.BaseBlock;
|
||||
import com.sk89q.worldedit.extent.AbstractDelegateExtent;
|
||||
import com.sk89q.worldedit.extent.Extent;
|
||||
@ -140,8 +141,10 @@ public class BlockTransformExtent extends AbstractDelegateExtent {
|
||||
}
|
||||
|
||||
List<String> directionalProperties = properties.stream()
|
||||
.filter(prop -> prop instanceof BooleanProperty)
|
||||
.filter(prop -> directionNames.contains(prop.getName()))
|
||||
.filter(prop -> ((Boolean) block.getState(prop)))
|
||||
.map(prop -> (BooleanProperty) prop)
|
||||
.filter(block::getState)
|
||||
.map(Property::getName)
|
||||
.map(String::toUpperCase)
|
||||
.map(Direction::valueOf)
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren