Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
SPIGOT-5089: UnsupportedOperationException on setting villager memory to null
Dieser Commit ist enthalten in:
Ursprung
8003ced585
Commit
efd8a2b50a
@ -22,7 +22,9 @@ public final class CraftMemoryMapper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Object toNms(Object object) {
|
public static Object toNms(Object object) {
|
||||||
if (object instanceof Location) {
|
if (object == null) {
|
||||||
|
return null;
|
||||||
|
} else if (object instanceof Location) {
|
||||||
return toNms((Location) object);
|
return toNms((Location) object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren