Added missing checks

This commit is contained in:
Pao
2023-01-15 04:26:56 +01:00
parent b5741cc059
commit 80725cf56d
3 changed files with 14 additions and 13 deletions

View File

@@ -236,7 +236,7 @@ TocContextMenus.FillCutAndOperateMenus = function(local_player, clicked_player,
if local_player == clicked_player then -- Local player
if CheckIfCanBeCut(v) then
if CheckIfCanBeCut(v) and not CheckIfProsthesisAlreadyInstalled(local_toc_data, v) then
cut_menu:addOption(getText('UI_ContextMenu_' .. v), _, TryTocAction, v, "Cut", local_player, local_player)
--cut_menu:addOption(getText('UI_ContextMenu_' .. v), _, TocCutLocal, local_player, local_player, v)