Merge branch 'patch-totem' into 'dev'

[patch] Totem NumberFormatException

See merge request morningstar/Arcturus-Community!63
This commit is contained in:
Harmonic 2020-01-16 10:15:12 -05:00
commit d316e514d5

View File

@ -22,7 +22,12 @@ public class InteractionTotemHead extends InteractionDefault {
} }
public TotemType getTotemType() { public TotemType getTotemType() {
int extraData = Integer.parseInt(this.getExtradata()); int extraData;
try {
extraData = Integer.parseInt(this.getExtradata());
} catch(NumberFormatException ex) {
extraData = 0;
}
if(extraData < 3) { if(extraData < 3) {
return TotemType.fromInt(extraData + 1); return TotemType.fromInt(extraData + 1);
} }