From fb72e527864586366680926a38e59d5a6b9f1a59 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Sat, 21 Aug 2021 12:50:47 -0500 Subject: [PATCH] not rendering hidden resource container --- src/render/DebugRenderer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/render/DebugRenderer.ts b/src/render/DebugRenderer.ts index 96abbf8..4656c11 100644 --- a/src/render/DebugRenderer.ts +++ b/src/render/DebugRenderer.ts @@ -22,7 +22,8 @@ class DebugRenderer implements IRenderer { head.appendChild(style); // create containers for each resource type for (const item in ResourceType) { - if (isNaN(Number(item))) { + if (isNaN(Number(item)) + && ResourceType[item] !== ResourceType.Hidden) { const el: HTMLElement = document.createElement('div'); el.id = `resource-container-${ResourceType[item]}`; el.className = 'resource-type-container';