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:
Ursprung
2f411fa838
Commit
52edc2ec7e
@ -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);
|
||||||
|
@ -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();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren