mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2025-03-09 21:29:17 +01:00
Fixes #724
This commit is contained in:
parent
4259656cda
commit
e27b1d5421
@ -52,10 +52,10 @@ public class BrushBoundBaseBlock extends BaseBlock implements BrushHolder {
|
|||||||
@Override
|
@Override
|
||||||
public BrushTool getTool() {
|
public BrushTool getTool() {
|
||||||
if (tool == null && hasNbtData()) {
|
if (tool == null && hasNbtData()) {
|
||||||
String json = getNbtData().getString("weBrushJson");
|
StringTag json = (StringTag) getNbtData().getValue().get("weBrushJson");
|
||||||
if (json != null) {
|
if (json != null) {
|
||||||
try {
|
try {
|
||||||
this.tool = BrushTool.fromString(player, session, json);
|
this.tool = BrushTool.fromString(player, session, json.getValue());
|
||||||
this.tool.setHolder(this);
|
this.tool.setHolder(this);
|
||||||
brushCache.put(getKey(item), tool);
|
brushCache.put(getKey(item), tool);
|
||||||
} catch (Throwable ignore) {
|
} catch (Throwable ignore) {
|
||||||
|
Loading…
Reference in New Issue
Block a user