mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-01 02:46:41 +00:00
Fixes and changes to forest/forestgen.
* Sync up implementations of the two commands. * Fix generating trees in spots with replaceable blocks. * Make message when you mistype tree-type arg more correct. Fixes WORLDEDIT-3869.
This commit is contained in:
@ -52,6 +52,7 @@ import com.sk89q.worldedit.world.block.BaseBlock;
|
||||
import com.sk89q.worldedit.world.block.BlockState;
|
||||
import com.sk89q.worldedit.world.block.BlockStateHolder;
|
||||
import com.sk89q.worldedit.world.registry.BiomeRegistry;
|
||||
import sun.reflect.generics.tree.Tree;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
@ -290,7 +291,8 @@ public class WorldEditBinding extends BindingHelper {
|
||||
return type;
|
||||
} else {
|
||||
throw new ParameterException(
|
||||
String.format("Can't recognize tree type '%s' -- choose from: %s", input, Arrays.toString(TreeType.values())));
|
||||
String.format("Can't recognize tree type '%s' -- choose from: %s", input,
|
||||
TreeType.getPrimaryAliases()));
|
||||
}
|
||||
} else {
|
||||
return TreeType.TREE;
|
||||
|
Reference in New Issue
Block a user