diff --git a/patches.js b/patches.js index bd987a8..7190e63 100644 --- a/patches.js +++ b/patches.js @@ -140,7 +140,9 @@ canvas.font=aY.g0.g1(1,fontSize),canvas.fillStyle="rgba("+gR+","+tD+","+hj+",0.6 `, ${dict.game}.${dict.gIsTeamGame} && __fx.donationsTracker.displayHistory($2, ${rawPlayerNames}, ${gIsSingleplayer}), $1 && !isEmptySpace $3`); // Reset donation history and leaderboard filter when a new game is started - replaceOne(new RegExp(`,this\\.${dictionary.playerBalances}.fill\\(0\\),`, "g"), "$& __fx.donationsTracker.reset(), __fx.leaderboardFilter.reset(), __fx.customLobby.isActive() && __fx.customLobby.hideWindow(), "); + replaceRawCode(",ab.dP(),ad.a10(),b5.nZ.oJ=[],bc.dP(),this.wE=1,", + `,ab.dP(),ad.a10(),b5.nZ.oJ=[],bc.dP(),this.wE=1, + __fx.donationsTracker.reset(), __fx.leaderboardFilter.reset(), __fx.customLobby.isActive() && __fx.customLobby.hideWindow(),`) { // Player list and leaderboard filter tabs // Draw player list button diff --git a/src/main.js b/src/main.js index 7fd72ae..0532f40 100644 --- a/src/main.js +++ b/src/main.js @@ -1,5 +1,5 @@ -const fx_version = '0.6.6.9'; // FX Client Version -const fx_update = 'Dec 24'; // FX Client Last Updated +const fx_version = '0.6.6.10'; // FX Client Version +const fx_update = 'Dec 25'; // FX Client Last Updated import settingsManager from './settings.js'; import { clanFilter, leaderboardFilter } from "./clanFilters.js";