Working stuff

This commit is contained in:
Pao
2023-01-23 00:34:44 +01:00
parent 739a358925
commit 73fdbb11e0
4 changed files with 46 additions and 55 deletions

View File

@@ -118,10 +118,8 @@ end
TocContextMenus.FillCutAndOperateMenus = function(local_player, clicked_player, world_objects, cut_menu, operate_menu)
local local_part_data = local_player:getModData().TOC.Limbs
for _, v in ipairs(GetBodyParts()) do
if local_player == clicked_player then -- Local player
if CheckIfCanBeCut(v) and TocGetSawInInventory(local_player) ~= nil then
@@ -145,21 +143,9 @@ TocContextMenus.FillCutAndOperateMenus = function(local_player, clicked_player,
operate_menu:addOption(getText('UI_ContextMenu_' .. v), world_objects, TryTocAction, v, "Operate",
local_player, clicked_player)
end
end
end
end
end