mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 07:20:50 +01:00
fixed NumberFormatException in totem extradata
This commit is contained in:
parent
dab3f8e2c3
commit
cfc17e249f
@ -22,7 +22,12 @@ public class InteractionTotemHead extends InteractionDefault {
|
||||
}
|
||||
|
||||
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) {
|
||||
return TotemType.fromInt(extraData + 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user