Fix incorrect route being assigned to init.lua and init.model.json files

This commit is contained in:
Lucien Greathouse
2018-06-10 15:44:56 -07:00
parent 82ba583fa0
commit a089d82023
2 changed files with 2 additions and 0 deletions

View File

@@ -59,6 +59,7 @@ impl Plugin for JsonModelPlugin {
rbx_item.name.clear();
rbx_item.name.push_str(vfs_item.name());
rbx_item.route = Some(vfs_item.route().to_vec());
for (child_name, child_item) in children {
if child_name == init_item.name() {

View File

@@ -79,6 +79,7 @@ impl Plugin for ScriptPlugin {
rbx_item.name.clear();
rbx_item.name.push_str(vfs_item.name());
rbx_item.route = Some(vfs_item.route().to_vec());
for (child_name, child_item) in children {
if child_name == init_item.name() {