mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-05 09:20:18 -05:00
SPIGOT-5089: UnsupportedOperationException on setting villager memory to null
This commit is contained in:
1 parent
8003ced585
commit
efd8a2b50a
1 file changed
+3
-1
@@ -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