Debug bad persistent brush values
This commit is contained in:
parent
147c1c87fe
commit
fb8f76f833
@ -59,7 +59,11 @@ public class BrushBoundBaseBlock extends BaseBlock implements BrushHolder {
|
||||
this.tool.setHolder(this);
|
||||
brushCache.put(getKey(item), tool);
|
||||
} catch (Throwable ignore) {
|
||||
ignore.printStackTrace();
|
||||
Fawe.debug("Invalid brush for " + player + " holding " + item + ": " + json.getValue());
|
||||
if (item != null) {
|
||||
item = Fawe.<FaweBukkit>imp().getItemUtil().setNBT(item, null);
|
||||
brushCache.remove(getKey(item));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user