diff --git a/.github/workflows/buildclient.yml b/.github/workflows/buildclient.yml index ae4f6ed1..c85cf898 100644 --- a/.github/workflows/buildclient.yml +++ b/.github/workflows/buildclient.yml @@ -13,9 +13,9 @@ jobs: env: CI: false REACT_APP_RECAPTCHA_CLIENT_KEY: 6LdVxgYdAAAAAPtvjrXLAzSd2ANyzIkiSqk_yFpt - REACT_APP_API: api.swordbattle.io + REACT_APP_API: sb-api-fb48ef34a197.herokuapp.com REACT_APP_ENDPOINT_US: na.swordbattle.io - REACT_APP_API_BACKUP: sb-api-fb48ef34a197.herokuapp.com + REACT_APP_API_BACKUP: api.swordbattle.io REACT_APP_ENDPOINT_US_BACKUP: swordbattlev2-42256f2058d6.herokuapp.com steps: diff --git a/client/src/game/entities/Coin.ts b/client/src/game/entities/Coin.ts index f14caf2e..a137af31 100644 --- a/client/src/game/entities/Coin.ts +++ b/client/src/game/entities/Coin.ts @@ -53,6 +53,7 @@ class Coin extends BaseEntity { remove() { super.remove(); + this.eatingTween?.destroy(); this.game.gameState.removedEntities.delete(this); }