refactor: cleaning code

This commit is contained in:
ZioPao
2025-04-13 03:21:06 +02:00
parent 253c5717a9
commit d5fd735de8
3 changed files with 4 additions and 6 deletions

View File

@@ -118,7 +118,7 @@ function BaseHandler:toPlayerInventory(item, previousAction)
if item:getContainer() ~= self:getDoctor():getInventory() then
local action = ISInventoryTransferAction:new(self:getDoctor(), item, item:getContainer(), self:getDoctor():getInventory())
ISTimedActionQueue.addAfter(previousAction, action)
-- FIXME: ISHealthPanel.actions never gets cleared
-- FIX: ISHealthPanel.actions never gets cleared
self.panel.actions = self.panel.actions or {}
self.panel.actions[action] = self.bodyPart
return action