This commit is contained in:
Jesse Boyd 2017-09-06 02:50:49 +10:00
parent 4259656cda
commit e27b1d5421
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -52,10 +52,10 @@ public class BrushBoundBaseBlock extends BaseBlock implements BrushHolder {
@Override
public BrushTool getTool() {
if (tool == null && hasNbtData()) {
String json = getNbtData().getString("weBrushJson");
StringTag json = (StringTag) getNbtData().getValue().get("weBrushJson");
if (json != null) {
try {
this.tool = BrushTool.fromString(player, session, json);
this.tool = BrushTool.fromString(player, session, json.getValue());
this.tool.setHolder(this);
brushCache.put(getKey(item), tool);
} catch (Throwable ignore) {