mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Added block bag support to the block replacer and sphere brush super pickaxe tools.
This commit is contained in:
parent
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user