Skip to content

Commit

Permalink
Fix for b41.65 backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
outdead committed Feb 26, 2022
1 parent be7b1ca commit 0e8a7e7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/lua/client/LogExtenderClient.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

local version = "0.8.0"

local pzversion = getCore():getVersionNumber()

LogExtenderClient = {
version = version,

Expand Down Expand Up @@ -36,9 +38,11 @@ LogExtenderClient = {
}

LogExtenderClient.writeLog = function(filemask, message)
--writeLog(filemask, message);
--ISLogSystem.sendLog(LogExtenderClient.player, filemask, message)
sendClientCommand("LogExtender", "write", { mask = filemask, message = message });
if pzversion == "41.65" then
writeLog(filemask, message);
else
sendClientCommand("LogExtender", "write", { mask = filemask, message = message });
end
end

-- getLogLinePrefix generates prefix for each log lines.
Expand Down

0 comments on commit 0e8a7e7

Please sign in to comment.