Files
paper-mc/patches/server
Bjarne Koll 1b174804c7 Return null in getRegistry(Class) for unknown type (#11422)
The Bukkit#getRegistry(Class) method contract specifies that it returns
null for unknown registry types. The current implementation however
requires the passed class to be mappable to a known registry key.

For types like Material, which have a SimpleRegistry in bukkit's
Registry interface, no server side registry exists and such the type
cannot be mapped to a registry key.

The commit correctly returns null for types that are not mappable to a
registry key instead of throwing a NullPointerException.
2024-09-21 19:57:08 +02:00
..
2024-09-12 19:54:34 +02:00
2024-08-17 23:17:18 +02:00
2024-07-28 19:58:57 +02:00
2024-08-10 12:24:38 +02:00