Skip to content

Commit

Permalink
fix: fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TiyoSheng committed Dec 1, 2023
1 parent 988550b commit d0e403d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/client/src/components/Battle/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export default function Battle(props) {
} else if ((curType == 'attacker' && battle?.attackerState == 2) || (curType == 'defender' && battle?.defenderState == 2)) {
state = 2
}
duel.current.reset()
setBattleState(state)
initBattle()
}
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/mud/setupNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export async function setupNetwork() {
config: mudConfig,
address: networkConfig.worldAddress as Hex,
publicClient,
startBlock: BigInt(networkConfig.initialBlockNumber),
startBlock: BigInt(networkConfig.initialBlockNumber)
});

// Request drip from faucet
Expand Down

0 comments on commit d0e403d

Please sign in to comment.