Debug bad persistent brush values

This commit is contained in:
Jesse Boyd 2018-02-09 15:58:48 +11:00
parent 147c1c87fe
commit fb8f76f833
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -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));
}
}
}
}