Skip to content

Commit

Permalink
various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Aug 12, 2024
1 parent a17b8f6 commit 53b8ec7
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions integrations/advtrains.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function advtrains.read_component(name)
end

-- local old_advtrains_save_component = advtrains.save_component
function advtrains.save_component(name)
assert(name == "version")
function advtrains.save_component()
-- no-op
end

-- load from data- or world-path
Expand All @@ -31,14 +31,6 @@ function serialize_lib.load_atomic(filename, load_callback)
local relpath = string.sub(filename, #advtrains.fpath + 2)
local timestamp_storage_key = "advtrains_timestamp_" .. relpath

print(dump({
fn = "serialize_lib.load_atomic",
filename = filename,
fpath = advtrains.fpath,
relpath = relpath,
timestamp_storage_key = timestamp_storage_key
}))

-- check world- and snapshot-timestamp
local snapshot_timestamp = mapsync.load_data("advtrains_timestamp") or 0
local world_timestamp = mapsync.storage:get_int(timestamp_storage_key)
Expand Down

0 comments on commit 53b8ec7

Please sign in to comment.