mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
parent
0bf0848758
commit
29cd844fb1
@ -1315,9 +1315,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