Fix entity path

This commit is contained in:
hodasemi 2024-08-25 12:17:33 +02:00
parent cbe437eda8
commit de9136dfd8

View file

@ -274,8 +274,6 @@ impl Game {
}); });
StrongHandle::new(Game { StrongHandle::new(Game {
engine,
maps: RwLock::new(map_map), maps: RwLock::new(map_map),
black_listed_maps: RwLock::new(black_listed_maps), black_listed_maps: RwLock::new(black_listed_maps),
tiles: RwLock::new(tile_map), tiles: RwLock::new(tile_map),
@ -295,7 +293,7 @@ impl Game {
item_system, item_system,
entity_manager: Mutex::new(EntityManager::new( entity_manager: Mutex::new(EntityManager::new(
engine_create_info.asset_directories.entity_file_directory, engine.settings().entity_directory().clone(),
)?), )?),
settings_file_location: settings.user_settings_file, settings_file_location: settings.user_settings_file,
@ -303,6 +301,8 @@ impl Game {
slide_images: Mutex::new(HashMap::new()), slide_images: Mutex::new(HashMap::new()),
map_info, map_info,
engine,
}) })
}; };