If we can't find something to convert, return the original.
This commit is contained in:
parent
a53c8ffb79
commit
ebd515e7df
@ -1352,6 +1352,8 @@ public class ReflectionManager {
|
|||||||
return NmsVersion.v1_13.isSupported() ? Optional.of(obj) : com.google.common.base.Optional.of(obj);
|
return NmsVersion.v1_13.isSupported() ? Optional.of(obj) : com.google.common.base.Optional.of(obj);
|
||||||
} else if (!NmsVersion.v1_13.isSupported()) {
|
} else if (!NmsVersion.v1_13.isSupported()) {
|
||||||
return com.google.common.base.Optional.of(val);
|
return com.google.common.base.Optional.of(val);
|
||||||
|
} else {
|
||||||
|
return Optional.of(val);
|
||||||
}
|
}
|
||||||
} else if (value instanceof Vector3F) {
|
} else if (value instanceof Vector3F) {
|
||||||
Vector3F angle = (Vector3F) value;
|
Vector3F angle = (Vector3F) value;
|
||||||
|
@ -315,7 +315,7 @@ public class ReflectionManager implements ReflectionManagerAbstract {
|
|||||||
return Optional.of(obj);
|
return Optional.of(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Optional.empty();
|
return Optional.of(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Vector3f convertVec3(Object object) {
|
public Vector3f convertVec3(Object object) {
|
||||||
|
@ -315,7 +315,7 @@ public class ReflectionManager implements ReflectionManagerAbstract {
|
|||||||
return Optional.of(obj);
|
return Optional.of(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Optional.empty();
|
return Optional.of(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Vector3f convertVec3(Object object) {
|
public Vector3f convertVec3(Object object) {
|
||||||
|
Loading…
Reference in New Issue
Block a user