fixed excercising
This commit is contained in:
@@ -91,6 +91,7 @@ end
|
||||
|
||||
function CheckIfItemIsAmputatedLimb(item)
|
||||
|
||||
|
||||
local item_full_type = item:getFullType()
|
||||
|
||||
local sides = {"Left", "Right"}
|
||||
|
||||
@@ -132,6 +132,10 @@ end
|
||||
|
||||
local og_ISInventoryPaneContextMenuUnequipItem = ISInventoryPaneContextMenu.unequipItem
|
||||
function ISInventoryPaneContextMenu.unequipItem(item, player)
|
||||
|
||||
if item == nil then
|
||||
return
|
||||
end
|
||||
if CheckIfItemIsAmputatedLimb(item) == false and CheckIfItemIsInstalledProsthesis(item) == false then
|
||||
og_ISInventoryPaneContextMenuUnequipItem(item, player)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user