fixed excercising

This commit is contained in:
Pao
2023-01-19 00:39:17 +01:00
parent 1430959964
commit 8378e12913
2 changed files with 5 additions and 0 deletions

View File

@@ -90,6 +90,7 @@ end
-- Override helper -- Override helper
function CheckIfItemIsAmputatedLimb(item) function CheckIfItemIsAmputatedLimb(item)
local item_full_type = item:getFullType() local item_full_type = item:getFullType()

View File

@@ -132,6 +132,10 @@ end
local og_ISInventoryPaneContextMenuUnequipItem = ISInventoryPaneContextMenu.unequipItem local og_ISInventoryPaneContextMenuUnequipItem = ISInventoryPaneContextMenu.unequipItem
function ISInventoryPaneContextMenu.unequipItem(item, player) function ISInventoryPaneContextMenu.unequipItem(item, player)
if item == nil then
return
end
if CheckIfItemIsAmputatedLimb(item) == false and CheckIfItemIsInstalledProsthesis(item) == false then if CheckIfItemIsAmputatedLimb(item) == false and CheckIfItemIsInstalledProsthesis(item) == false then
og_ISInventoryPaneContextMenuUnequipItem(item, player) og_ISInventoryPaneContextMenuUnequipItem(item, player)
end end