mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-27 05:00:08 +08:00
Disabling global masks while regnerating because they only affect the area outside the selection.
This commit is contained in:
parent
2af31fe231
commit
5e45fd1625
@ -30,6 +30,7 @@
|
||||
import com.sk89q.worldedit.blocks.BaseBlock;
|
||||
import com.sk89q.worldedit.filtering.GaussianKernel;
|
||||
import com.sk89q.worldedit.filtering.HeightMapFilter;
|
||||
import com.sk89q.worldedit.masks.Mask;
|
||||
import com.sk89q.worldedit.patterns.*;
|
||||
import com.sk89q.worldedit.regions.Region;
|
||||
import com.sk89q.worldedit.regions.RegionOperationException;
|
||||
@ -304,7 +305,10 @@ public static void regenerateChunk(CommandContext args, WorldEdit we,
|
||||
throws WorldEditException {
|
||||
|
||||
Region region = session.getSelection(player.getWorld());
|
||||
Mask mask = session.getMask();
|
||||
session.setMask(null);
|
||||
player.getWorld().regenerate(region, editSession);
|
||||
session.setMask(mask);
|
||||
player.print("Region regenerated.");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user