mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 05:32:18 -07:00
SPIGOT-5089: UnsupportedOperationException on setting villager memory to null
This commit is contained in:
@@ -22,7 +22,9 @@ public final class CraftMemoryMapper {
|
||||
}
|
||||
|
||||
public static Object toNms(Object object) {
|
||||
if (object instanceof Location) {
|
||||
if (object == null) {
|
||||
return null;
|
||||
} else if (object instanceof Location) {
|
||||
return toNms((Location) object);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user