Skip to content

Commit

Permalink
DoBroadcast fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Jan 8, 2024
1 parent 38d70b7 commit b531869
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion extras/version.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return { commitId = '2da6cab 2024-01-07' }
return { commitId = '38d70b7 2024-01-07' }
4 changes: 2 additions & 2 deletions modules/basic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ end
function Module:SaveSettings(doBroadcast)
mq.pickle(getConfigFileName(), self.settings)

if doBroadcast then
if doBroadcast == true then
RGMercUtils.BroadcastUpdate(self._name, "LoadSettings")
end
end
Expand All @@ -33,7 +33,7 @@ function Module:LoadSettings()
RGMercsLogger.log_error("\ay[Basic]: Unable to load global settings file(%s), creating a new one!",
settings_pickle_path)
self.settings.MyCheckbox = false
self:SaveSettings(true)
self:SaveSettings(false)
else
self.settings = config()
end
Expand Down
2 changes: 1 addition & 1 deletion modules/class.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ end
function Module:SaveSettings(doBroadcast)
mq.pickle(getConfigFileName(), self.settings)

if doBroadcast then
if doBroadcast == true then
RGMercUtils.BroadcastUpdate(self._name, "LoadSettings")
end
end
Expand Down
2 changes: 1 addition & 1 deletion modules/movement.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ end
function Module:SaveSettings(doBroadcast)
mq.pickle(getConfigFileName(), self.settings)

if doBroadcast then
if doBroadcast == true then
RGMercUtils.BroadcastUpdate(self._name, "LoadSettings")
end
end
Expand Down
2 changes: 1 addition & 1 deletion modules/performance.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ end
function Module:SaveSettings(doBroadcast)
mq.pickle(getConfigFileName(), self.settings)

if doBroadcast then
if doBroadcast == true then
RGMercUtils.BroadcastUpdate(self._name, "LoadSettings")
end
end
Expand Down
2 changes: 1 addition & 1 deletion modules/pull.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ end
function Module:SaveSettings(doBroadcast)
mq.pickle(getConfigFileName(), self.settings)

if doBroadcast then
if doBroadcast == true then
RGMercUtils.BroadcastUpdate(self._name, "LoadSettings")
end
end
Expand Down
2 changes: 1 addition & 1 deletion modules/travel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ end
function Module:SaveSettings(doBroadcast)
mq.pickle(getConfigFileName(), self.settings)

if doBroadcast then
if doBroadcast == true then
RGMercUtils.BroadcastUpdate(self._name, "LoadSettings")
end
end
Expand Down
2 changes: 1 addition & 1 deletion utils/rgmercs_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function Config:SaveSettings(doBroadcast)

RGMercsLogger.set_log_level(self.settings.LogLevel)

if doBroadcast then
if doBroadcast == true then
RGMercUtils.BroadcastUpdate("main", "LoadSettings")
end
end
Expand Down

0 comments on commit b531869

Please sign in to comment.