Skip to content

Commit

Permalink
Fixed bug that transmitted the wrong energy total
Browse files Browse the repository at this point in the history
  • Loading branch information
ForgottenArbiter committed Sep 7, 2019
1 parent 085ef0b commit 5c9bdc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/communicationmod/GameStateConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import com.megacrit.cardcrawl.shop.StorePotion;
import com.megacrit.cardcrawl.shop.StoreRelic;
import com.megacrit.cardcrawl.ui.buttons.LargeDialogOptionButton;
import com.megacrit.cardcrawl.ui.panels.EnergyPanel;
import communicationmod.patches.UpdateBodyTextPatch;

import java.lang.reflect.Field;
Expand Down Expand Up @@ -716,7 +717,7 @@ private static HashMap<String, Object> convertPlayerToJson(AbstractPlayer player
jsonPlayer.put("max_hp", player.maxHealth);
jsonPlayer.put("current_hp", player.currentHealth);
jsonPlayer.put("powers", convertCreaturePowersToJson(player));
jsonPlayer.put("energy", player.energy.energy);
jsonPlayer.put("energy", EnergyPanel.totalCount);
jsonPlayer.put("block", player.currentBlock);
ArrayList<Object> orbs = new ArrayList<>();
for(AbstractOrb orb : player.orbs) {
Expand Down

0 comments on commit 5c9bdc4

Please sign in to comment.