Fix custom names for 1.17 and 1.18
This commit is contained in:
		| @@ -1310,14 +1310,15 @@ public class ReflectionManager { | ||||
|     public static Object convertInvalidMeta(Object value) { | ||||
|         if (value instanceof Optional) { | ||||
|             Optional opt = (Optional) value; | ||||
|             if (nmsReflection != null) { | ||||
|                 return nmsReflection.convertOptional(opt); | ||||
|             } | ||||
|  | ||||
|             if (!opt.isPresent()) { | ||||
|                 return NmsVersion.v1_13.isSupported() ? value : com.google.common.base.Optional.absent(); | ||||
|             } | ||||
|  | ||||
|             if (nmsReflection != null) { | ||||
|                 return nmsReflection.convertOptional(opt.get()); | ||||
|             } | ||||
|  | ||||
|             Object val = opt.get(); | ||||
|  | ||||
|             if (val instanceof BlockPosition) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user