Add some error for failed to find meta
This commit is contained in:
parent
298d2deeba
commit
b3274cc88b
@ -257,8 +257,15 @@ public class FlagWatcher {
|
|||||||
|
|
||||||
for (WrappedWatchableObject watch : list) {
|
for (WrappedWatchableObject watch : list) {
|
||||||
int id = watch.getIndex();
|
int id = watch.getIndex();
|
||||||
|
MetaIndex index = MetaIndex.getMetaIndex(this, id);
|
||||||
sentValues.add(id);
|
sentValues.add(id);
|
||||||
|
|
||||||
|
if (index == null) {
|
||||||
|
DisguiseUtilities.getLogger()
|
||||||
|
.severe("Failed to find a registered ID for " + id + " of " + getClass().getSimpleName() + " with data value " + watch.getRawValue());
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Its sending the air metadata. This is the least commonly sent metadata which all entitys still share.
|
// Its sending the air metadata. This is the least commonly sent metadata which all entitys still share.
|
||||||
// I send my custom values if I see this!
|
// I send my custom values if I see this!
|
||||||
if (id == MetaIndex.ENTITY_AIR_TICKS.getIndex()) {
|
if (id == MetaIndex.ENTITY_AIR_TICKS.getIndex()) {
|
||||||
@ -290,7 +297,7 @@ public class FlagWatcher {
|
|||||||
|
|
||||||
boolean isDirty = watch.getDirtyState();
|
boolean isDirty = watch.getDirtyState();
|
||||||
|
|
||||||
watch = ReflectionManager.createWatchable(MetaIndex.getMetaIndex(this, id), value);
|
watch = ReflectionManager.createWatchable(index, value);
|
||||||
|
|
||||||
if (watch == null) {
|
if (watch == null) {
|
||||||
continue;
|
continue;
|
||||||
@ -302,7 +309,7 @@ public class FlagWatcher {
|
|||||||
} else {
|
} else {
|
||||||
boolean isDirty = watch.getDirtyState();
|
boolean isDirty = watch.getDirtyState();
|
||||||
|
|
||||||
watch = ReflectionManager.createWatchable(MetaIndex.getMetaIndex(this, id), watch.getRawValue());
|
watch = ReflectionManager.createWatchable(index, watch.getRawValue());
|
||||||
|
|
||||||
if (watch == null) {
|
if (watch == null) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user