Merge pull request #349 from BrodyBeckwith/walls

Fix cuboid wall creation
Dieser Commit ist enthalten in:
Josh Knight 2020-03-02 17:06:40 -05:00 committet von GitHub
Commit f3aa8c5b9a
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -1343,9 +1343,11 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
checkNotNull(region); checkNotNull(region);
checkNotNull(pattern); checkNotNull(pattern);
CuboidRegion cuboid = CuboidRegion.makeCuboid(region); int blocksChanged = 0;
Region faces = cuboid.getWalls(); for (Region wall : CuboidRegion.makeCuboid(region).getWalls().getRegions()) {
return setBlocks(faces, pattern); blocksChanged += setBlocks(wall, pattern);
}
return blocksChanged;
} }
/** /**