geforkt von Mirrors/FastAsyncWorldEdit
Leave a note about (temporary) not undoable tree tools
Dieser Commit ist enthalten in:
Ursprung
77e44c80c2
Commit
69067fe8c8
@ -50,6 +50,7 @@ import com.sk89q.worldedit.regions.CuboidRegion;
|
||||
import com.sk89q.worldedit.regions.Region;
|
||||
import com.sk89q.worldedit.util.TreeGenerator.TreeType;
|
||||
import com.sk89q.worldedit.util.formatting.text.TextComponent;
|
||||
import com.sk89q.worldedit.util.formatting.text.format.TextColor;
|
||||
import com.sk89q.worldedit.world.biome.BiomeType;
|
||||
import com.sk89q.worldedit.world.block.BlockType;
|
||||
import org.enginehub.piston.annotation.Command;
|
||||
@ -240,6 +241,9 @@ public class GenerationCommands {
|
||||
@Arg(desc = "The density of the forest, between 0 and 100", def = "5")
|
||||
double density
|
||||
) throws WorldEditException {
|
||||
//FAWE start
|
||||
actor.print(TextComponent.of("Warning: This brush is currently not undo-able due to a Spigot bug!").color(TextColor.RED));
|
||||
//FAWE end
|
||||
checkCommandArgument(0 <= density && density <= 100, "Density must be between 0 and 100");
|
||||
worldEdit.checkMaxRadius(size);
|
||||
density /= 100;
|
||||
|
@ -242,6 +242,9 @@ public class ToolCommands {
|
||||
TreeGenerator.TreeType type
|
||||
) throws WorldEditException {
|
||||
setTool(player, session, new TreePlanter(type), "worldedit.tool.tree.equip");
|
||||
//FAWE start
|
||||
player.print(TextComponent.of("Warning: This brush is currently not undo-able due to a Spigot bug!").color(TextColor.RED));
|
||||
//FAWE end
|
||||
}
|
||||
|
||||
@Command(
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren