From 7eddc4d988bce653f8699e5d30e18a3100fe11d6 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Tue, 19 Nov 2024 13:32:08 +0100 Subject: [PATCH] code improvement --- src/playermat/Playermat.ttslua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/playermat/Playermat.ttslua b/src/playermat/Playermat.ttslua index dd25ad10..20f72b5d 100644 --- a/src/playermat/Playermat.ttslua +++ b/src/playermat/Playermat.ttslua @@ -1192,11 +1192,7 @@ end function resetSlotSymbols(empty) slotData = {} for _, slotName in ipairs(defaultSlotData) do - if empty then - table.insert(slotData, "any") - else - table.insert(slotData, slotName) - end + table.insert(slotData, empty and "any" or slotName) end updateSave() updateSlotSymbols()