From 0e8a7e76f28ea33f5f987f50031e4986a6d5b222 Mon Sep 17 00:00:00 2001 From: outdead Date: Sat, 26 Feb 2022 04:19:07 +0300 Subject: [PATCH] Fix for b41.65 backward compatibility --- src/lua/client/LogExtenderClient.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/lua/client/LogExtenderClient.lua b/src/lua/client/LogExtenderClient.lua index 3078f5b..b5d6e52 100644 --- a/src/lua/client/LogExtenderClient.lua +++ b/src/lua/client/LogExtenderClient.lua @@ -9,6 +9,8 @@ local version = "0.8.0" +local pzversion = getCore():getVersionNumber() + LogExtenderClient = { version = version, @@ -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.