Support the doc_identifier mod

This commit is contained in:
Y. Wang 2023-10-03 16:20:31 +02:00
parent 9771217796
commit 74cde540c1

View File

@ -355,6 +355,9 @@ local function doc_register_wagon(itemname)
name = ItemStack(itemname):get_short_description(),
data = prototype,
})
if doc.sub.identifier then
doc.sub.identifier.register_object(itemname, "advtrains_wagons", itemname)
end
end
local wlivprev = {}