Skip to content

Commit

Permalink
that was kind of dumb >.>
Browse files Browse the repository at this point in the history
  • Loading branch information
xbony2 committed Feb 1, 2015
1 parent fff1031 commit 9436b2b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,9 @@ public void markDirty() {
double cur = MODE_ENERGY; //default

switch(mode){
case MODE_ENERGY: cur = cardHelper.getDouble("energyL");
case MODE_LIQUID: cur = cardHelper.getInt("amount");
case MODE_ENERGY: cur = cardHelper.getDouble("energyL"); break;
case MODE_LIQUID: cur = cardHelper.getInt("amount"); break;
default: cur = cardHelper.getDouble("energyL"); break;
}

if (cur >= maxV){
Expand Down

0 comments on commit 9436b2b

Please sign in to comment.