mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-18 01:46:11 +00:00
Merge pull request #349 from BrodyBeckwith/walls
Fix cuboid wall creation
This commit is contained in:
commit
f3aa8c5b9a
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user