3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-08 04:20:06 +01:00

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

Dieser Commit ist enthalten in:
sk89q 2011-01-09 11:23:57 -08:00
Ursprung 2f411fa838
Commit 52edc2ec7e
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen

Datei anzeigen

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

Datei anzeigen

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