3
0
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:
dordsor21 2021-07-16 10:44:52 +01:00
Ursprung 2485f5eccc
Commit c98f6e4f37
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -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));
} }
} }