From dff5a9ad572266771b5edd09984eded9f96b73cb Mon Sep 17 00:00:00 2001 From: peshomir <80340328+peshomir@users.noreply.github.com> Date: Tue, 30 Dec 2025 21:15:52 +0200 Subject: [PATCH] Improve propaganda block --- patches/misc.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/patches/misc.js b/patches/misc.js index fc48058..2070f27 100644 --- a/patches/misc.js +++ b/patches/misc.js @@ -1,12 +1,16 @@ -import { definePatch } from "../modUtils.js" +import { definePatch, insert } from "../modUtils.js" -export default definePatch(({ insertCode }) => { +export default definePatch(({ insertCode, modifyCode }) => { // Hide propaganda popup insertCode(`/* here */ a = b.c + 60 * 1000; (new ea()).show(eS.eb, eS.colors, eS.id); eS = null; - return true;`, `if (__fx.settings.hidePropagandaPopup) return;`) + return true;`, `if (__fx.settings.hidePropagandaPopup || __fx.customLobby.isActive()) return;`) + modifyCode(`if (!a.b.c(0)) { + d = e.f + 1000 * 1; + return; + } ${insert(`if (!__fx.settings.hidePropagandaPopup && !__fx.customLobby.isActive())`)} a.g.h(5);`) }) \ No newline at end of file