Added block bag support to the block replacer and sphere brush super pickaxe tools.

This commit is contained in:
sk89q 2011-01-09 11:23:57 -08:00
parent 2f411fa838
commit 52edc2ec7e
2 changed files with 3 additions and 2 deletions

View File

@ -39,7 +39,8 @@ public class BlockReplacer implements SuperPickaxeMode {
LocalPlayer player, LocalSession session, WorldVector clicked) {
LocalWorld world = clicked.getWorld();
EditSession editSession = new EditSession(server, world, -1);
EditSession editSession = new EditSession(server, world, -1,
session.getBlockBag(player));
try {
editSession.setBlock(clicked, targetBlock);

View File

@ -49,7 +49,7 @@ public class SphereBrush implements SuperPickaxeMode {
}
ReplacingEditSession editSession = new ReplacingEditSession(server, target.getWorld(),
session.getBlockChangeLimit());
session.getBlockChangeLimit(), session.getBlockBag(player));
if (nonReplacing) {
editSession.disableReplacing();