fixed excercising
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user