Added block damage support to //replace and //replacenear

This commit is contained in:
zml2008
2011-08-28 23:57:07 -07:00
parent d83fed13fb
commit 1562f17540
5 changed files with 55 additions and 20 deletions

View File

@ -81,13 +81,13 @@ public class RegionCommands {
LocalSession session, LocalPlayer player, EditSession editSession)
throws WorldEditException {
Set<Integer> from;
Set<BaseBlock> from;
Pattern to;
if (args.argsLength() == 1) {
from = null;
to = we.getBlockPattern(player, args.getString(0));
} else {
from = we.getBlockIDs(player, args.getString(0), true);
from = we.getBlocks(player, args.getString(0), true);
to = we.getBlockPattern(player, args.getString(1));
}