mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 18:27:17 +01:00
SPIGOT-5089: UnsupportedOperationException on setting villager memory to null
This commit is contained in:
parent
8003ced585
commit
efd8a2b50a
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue