From 28b89373393ab8b4cc4ee62f0f847f4ffe203c6c Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sun, 5 May 2019 19:03:13 -0600 Subject: [PATCH] Prevent inventory flashing --- www/js/inventory.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/js/inventory.js b/www/js/inventory.js index 5d64504..fdc6251 100644 --- a/www/js/inventory.js +++ b/www/js/inventory.js @@ -8,6 +8,11 @@ function loadInventory(reload) { if (typeof reload != "boolean") { reload = false; + // Make it reload if there's already stuff there, + // to keep the items from disappearing and coming back + if ($("#item-bin .item-col").length > 0) { + reload = true; + } } if (reload == false) { $("#item-bin .item-col").remove();