Skip to content

Commit

Permalink
Mtn v3 - fix stateful dateset
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz committed Oct 11, 2023
1 parent 8889202 commit 1d1492b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions maps/mountain_fortress_v3/stateful/table.lua
Original file line number Diff line number Diff line change
Expand Up @@ -684,8 +684,6 @@ local function apply_startup_settings(settings)
Server.set_data(dataset, dataset_key_dev, settings)
end
end

return settings
end

local apply_settings_token =
Expand Down Expand Up @@ -714,7 +712,7 @@ local apply_settings_token =
this.current_date = settings.current_date
this.buffs = settings.buffs

settings = apply_startup_settings(settings)
apply_startup_settings(settings)

this.rounds_survived = settings.rounds_survived

Expand All @@ -729,7 +727,8 @@ function Public.save_settings()
local settings = {
rounds_survived = this.rounds_survived,
test_mode = this.test_mode,
buffs = this.buffs
buffs = this.buffs,
current_date = this.current_date
}

local server_name_matches = Server.check_server_name('Mtn Fortress')
Expand Down

0 comments on commit 1d1492b

Please sign in to comment.