geforkt von Mirrors/FastAsyncWorldEdit
Added block bag support to the block replacer and sphere brush super pickaxe tools.
Dieser Commit ist enthalten in:
Ursprung
2f411fa838
Commit
52edc2ec7e
@ -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);
|
||||
|
@ -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();
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren