Disabling global masks while regnerating because they only affect the area outside the selection.

This commit is contained in:
TomyLobo 2011-08-10 04:16:54 +02:00
parent 2af31fe231
commit 5e45fd1625

View File

@ -30,6 +30,7 @@ import com.sk89q.worldedit.*;
import com.sk89q.worldedit.blocks.BaseBlock; import com.sk89q.worldedit.blocks.BaseBlock;
import com.sk89q.worldedit.filtering.GaussianKernel; import com.sk89q.worldedit.filtering.GaussianKernel;
import com.sk89q.worldedit.filtering.HeightMapFilter; import com.sk89q.worldedit.filtering.HeightMapFilter;
import com.sk89q.worldedit.masks.Mask;
import com.sk89q.worldedit.patterns.*; import com.sk89q.worldedit.patterns.*;
import com.sk89q.worldedit.regions.Region; import com.sk89q.worldedit.regions.Region;
import com.sk89q.worldedit.regions.RegionOperationException; import com.sk89q.worldedit.regions.RegionOperationException;
@ -304,7 +305,10 @@ public class RegionCommands {
throws WorldEditException { throws WorldEditException {
Region region = session.getSelection(player.getWorld()); Region region = session.getSelection(player.getWorld());
Mask mask = session.getMask();
session.setMask(null);
player.getWorld().regenerate(region, editSession); player.getWorld().regenerate(region, editSession);
session.setMask(mask);
player.print("Region regenerated."); player.print("Region regenerated.");
} }
} }