added player to parameters

This commit is contained in:
Chr1Z93 2024-03-06 11:23:44 +01:00
parent a7adba22b1
commit 2d42fc4a82

View File

@ -2,6 +2,6 @@ function onLoad()
self.addContextMenuItem("Download", download)
end
function download()
Global.call('placeholder_download', { url = self.getGMNotes(), replace = self.guid })
function download(_, playerColor)
Global.call('placeholder_download', { url = self.getGMNotes(), player = Player[playerColor], replace = self.guid })
end