diff --git a/CropRotation.lua b/CropRotation.lua index 1e485eb..95b7078 100644 --- a/CropRotation.lua +++ b/CropRotation.lua @@ -650,14 +650,16 @@ end FSBaseMission.initTerrain = Utils.appendedFunction(FSBaseMission.initTerrain, postInitTerrain) -function loadCropRotationHelpLine(...) - g_cropRotation.log:debug("loadCropRotationHelpLine()") - - g_helpLineManager:loadFromXML(Utils.getFilename("gui/helpLine.xml", g_cropRotation.MOD_DIRECTORY)) - return true +function CropRotation:loadCropRotationHelpLine(superFunc, ...) + local ret = superFunc(self, ...) + if ret then + self:loadFromXML(Utils.getFilename("gui/helpLine.xml", g_cropRotation.MOD_DIRECTORY)) + return true + end + return false end -HelpLineManager.loadMapData = Utils.appendedFunction(HelpLineManager.loadMapData, loadCropRotationHelpLine) +HelpLineManager.loadMapData = Utils.overwrittenFunction( HelpLineManager.loadMapData, CropRotation.loadCropRotationHelpLine) ------------------------------------------------ --- Vanilla Player HUD Updater diff --git a/build.bat b/build.bat index 073f8e7..43a8817 100644 --- a/build.bat +++ b/build.bat @@ -5,7 +5,6 @@ tar.exe -a -c -f FS22_CropRotation.zip^ utils^ maps^ translations^ - utils^ CropRotation.lua^ CropRotation.xml^ CropRotationData.lua^ @@ -14,8 +13,9 @@ tar.exe -a -c -f FS22_CropRotation.zip^ icon_cropRotation.dds^ modDesc.xml + rem copy ZIP to FS22 mods folder -xcopy /b/v/y FS22_CropRotation.zip "D:\Users\Bodzio\Documents\My Games\FarmingSimulator2022\mods" +rem xcopy /b/v/y FS22_CropRotation.zip "D:\Users\Bodzio\Documents\My Games\FarmingSimulator2022\mods" rem make update mod as well rem copy /b/v/y FS22_CropRotation.zip FS22_CropRotation_update.zip