In the case we're doing a copy entity disguise, try avoid failing a copy. Doesn't fix the underlying issue I believe.

This commit is contained in:
libraryaddict 2022-01-17 16:43:44 +13:00
parent 18081cf1ba
commit 1a800f7ae3

View File

@ -1022,8 +1022,12 @@ public class FlagWatcher {
@Deprecated
public <Y> void setUnsafeData(MetaIndex<Y> id, Y value) {
if (!id.getDefault().getClass().isInstance(value)) {
setBackupValue(id, value);
} else {
setData(id, value);
}
}
protected <Y> void setData(MetaIndex<Y> id, Y value) {
if (id == null) {