SPIGOT-5089: UnsupportedOperationException on setting villager memory to null
By: md_5 <git@md-5.net>
This commit is contained in:
parent
b8dc3168ff
commit
eabf410768
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…
Add table
Add a link
Reference in a new issue