mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-20 20:55:50 +00:00
Fix incorrect route being assigned to init.lua and init.model.json files
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user