mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2025-01-04 07:28:17 +01:00
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);
|
this.tool.setHolder(this);
|
||||||
brushCache.put(getKey(item), tool);
|
brushCache.put(getKey(item), tool);
|
||||||
} catch (Throwable ignore) {
|
} 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