Fixed more MP stuff

This commit is contained in:
Pao
2023-01-13 10:17:41 +01:00
parent 3938c540b4
commit 06bc050ebc
4 changed files with 85 additions and 53 deletions

View File

@@ -616,7 +616,15 @@ function ISNewHealthPanel.onClick_TOC(button)
if button.otherPlayer then
if button.character ~= button.otherPlayer then
sendClientCommand(button.otherPlayer, "TOC", "GetPlayerData", {button.otherPlayer:getOnlineID(), button.character:getOnlineID()})
SetCorrectArgsMainUI(MP_other_player_toc_data) --other player is the surgeon
if MP_other_player_toc_data == nil then
print("MP_other_player_toc_data is still nil")
else
SetCorrectArgsMainUI(MP_other_player_toc_data) --other player is the surgeon
end
else
SetCorrectArgsMainUI(getPlayer():getModData().TOC) --myself?