From 3c059d19efe8975276582c6d4087d250250a7e01 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 19 Jul 2024 01:54:49 +0300 Subject: [PATCH] #2529 Prioritize disabled for UI entry state --- public/scripts/world-info.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index 1facd2c1c..99ac56f2b 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -2875,12 +2875,12 @@ function getWorldEntry(name, data, entry) { }); const entryState = function () { - if (entry.constant === true) { + if (entry.disable === true) { + return 'disabled'; + } else if (entry.constant === true) { return 'constant'; } else if (entry.vectorized === true) { return 'vectorized'; - } else if (entry.disable === true) { - return 'disabled'; } else { return 'normal'; }