mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 00:40:52 +01:00
Merge branch 'patch-totem' into 'dev'
[patch] Totem NumberFormatException See merge request morningstar/Arcturus-Community!63
This commit is contained in:
commit
d316e514d5
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user