Prevent inventory flashing
This commit is contained in:
parent
1086bf6eee
commit
28b8937339
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user