more compile fixes

This commit is contained in:
Jason Penilla
2022-12-07 21:24:59 -07:00
parent 6e1deb99aa
commit a0a9b9291a
11 changed files with 41 additions and 22 deletions

View File

@@ -4923,7 +4923,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ try {
+ // We need this otherwise we return EMPTY for invalid names
+ ResourceLocation key = new ResourceLocation(name);
+ return Registry.CHUNK_STATUS.getOptional(key).orElse(null);
+ return BuiltInRegistries.CHUNK_STATUS.getOptional(key).orElse(null);
+ } catch (Exception ex) {
+ return null; // invalid name
+ }