Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-19 09:20:08 +01:00
Do not allow generation commands to generate outside selection
Dieser Commit ist enthalten in:
Ursprung
2485f5eccc
Commit
c98f6e4f37
@ -34,6 +34,7 @@ import com.fastasyncworldedit.core.object.collection.LocalBlockVectorSet;
|
|||||||
import com.fastasyncworldedit.core.object.extent.FaweRegionExtent;
|
import com.fastasyncworldedit.core.object.extent.FaweRegionExtent;
|
||||||
import com.fastasyncworldedit.core.object.extent.ProcessedWEExtent;
|
import com.fastasyncworldedit.core.object.extent.ProcessedWEExtent;
|
||||||
import com.fastasyncworldedit.core.object.extent.ResettableExtent;
|
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.extent.SourceMaskExtent;
|
||||||
import com.fastasyncworldedit.core.object.function.SurfaceRegionFunction;
|
import com.fastasyncworldedit.core.object.function.SurfaceRegionFunction;
|
||||||
import com.fastasyncworldedit.core.object.mask.ResettableMask;
|
import com.fastasyncworldedit.core.object.mask.ResettableMask;
|
||||||
@ -3277,7 +3278,7 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
|
|||||||
@Override
|
@Override
|
||||||
public void generate(Region region, GenBase gen) throws WorldEditException {
|
public void generate(Region region, GenBase gen) throws WorldEditException {
|
||||||
for (BlockVector2 chunkPos : region.getChunks()) {
|
for (BlockVector2 chunkPos : region.getChunks()) {
|
||||||
gen.generate(chunkPos, this);
|
gen.generate(chunkPos, new SingleRegionExtent(this, getLimit(), region));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren