fix(dtmm): Fix incorrect DMF resource names

This commit is contained in:
Lucas Schwiderski 2023-02-28 23:30:27 +01:00
parent 464face3a8
commit e2043aa502
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8

View file

@ -156,16 +156,16 @@ fn build_mod_data_lua(state: Arc<State>) -> String {
if resources.data.is_some() || resources.localization.is_some() {
lua.push_str(" new_mod(\"");
lua.push_str(&mod_info.id);
lua.push_str("\", {\n init = \"");
lua.push_str("\", {\n mod_script = \"");
lua.push_str(&resources.init.to_string_lossy());
if let Some(data) = resources.data.as_ref() {
lua.push_str("\",\n data = \"");
lua.push_str("\",\n mod_data = \"");
lua.push_str(&data.to_string_lossy());
}
if let Some(localization) = &resources.localization {
lua.push_str("\",\n localization = \"");
lua.push_str("\",\n mod_localization = \"");
lua.push_str(&localization.to_string_lossy());
}