Do not allow generation commands to generate outside selection

This commit is contained in:
dordsor21 2021-07-16 10:44:52 +01:00
parent 2485f5eccc
commit c98f6e4f37
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -34,6 +34,7 @@ import com.fastasyncworldedit.core.object.collection.LocalBlockVectorSet;
import com.fastasyncworldedit.core.object.extent.FaweRegionExtent;
import com.fastasyncworldedit.core.object.extent.ProcessedWEExtent;
import com.fastasyncworldedit.core.object.extent.ResettableExtent;
import com.fastasyncworldedit.core.object.extent.SingleRegionExtent;
import com.fastasyncworldedit.core.object.extent.SourceMaskExtent;
import com.fastasyncworldedit.core.object.function.SurfaceRegionFunction;
import com.fastasyncworldedit.core.object.mask.ResettableMask;
@ -3277,7 +3278,7 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
@Override
public void generate(Region region, GenBase gen) throws WorldEditException {
for (BlockVector2 chunkPos : region.getChunks()) {
gen.generate(chunkPos, this);
gen.generate(chunkPos, new SingleRegionExtent(this, getLimit(), region));
}
}