v0.4.1: made tutorial badge code less error-prone
This commit is contained in:
parent
efa9c3bb73
commit
475d78cd05
|
@ -815,16 +815,16 @@ public class Badges {
|
||||||
case MAGE:
|
case MAGE:
|
||||||
badge = Badge.TUTORIAL_MAGE;
|
badge = Badge.TUTORIAL_MAGE;
|
||||||
break;
|
break;
|
||||||
case ROGUE:
|
default:
|
||||||
break;
|
|
||||||
case HUNTRESS:
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
local.add( badge );
|
if (badge != null) {
|
||||||
if (!global.contains( badge )) {
|
local.add(badge);
|
||||||
global.add( badge );
|
if (!global.contains(badge)) {
|
||||||
saveNeeded = true;
|
global.add(badge);
|
||||||
|
saveNeeded = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user