SteamWar/BauSystem2.0
Archiviert
12
0

Merge pull request 'Hotbar deserialize fix' (#140) from hb_fix into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Reviewed-on: #140
Reviewed-by: YoyoNow <jwsteam@nidido.de>
Dieser Commit ist enthalten in:
YoyoNow 2022-10-02 13:07:00 +02:00
Commit c975685995

Datei anzeigen

@ -70,7 +70,11 @@ public class DefaultHotbar {
if (yapionAnyType instanceof YAPIONValue) {
hotbar[integer] = null;
} else {
hotbar[integer] = (ItemStack) YAPIONDeserializer.deserialize((YAPIONObject) yapionAnyType);
try {
hotbar[integer] = YAPIONDeserializer.deserialize((YAPIONObject) yapionAnyType);
} catch (Exception e) {
hotbar[integer] = null;
}
}
});
return hotbar;