Skip to content

Commit ea59021

Browse files
committed
fix chests deduplicating by accidant
1 parent 946070b commit ea59021

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

ewext/src/modules/entity_sync.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,8 @@ impl EntitySync {
233233
if let Some(ent) = self.find_by_gid(gid) {
234234
if let Some(file) = ent
235235
.iter_all_components_of_type_including_disabled::<LuaComponent>(None)?
236-
.find(|l| {
237-
!l.script_physics_body_modified()
238-
.unwrap_or("".into())
239-
.is_empty()
240-
})
241-
.map(|l| l.script_physics_body_modified().unwrap_or("".into()))
236+
.find(|l| !l.script_item_picked_up().unwrap_or("".into()).is_empty())
237+
.map(|l| l.script_item_picked_up().unwrap_or("".into()))
242238
{
243239
ent.add_lua_init_component::<LuaComponent>(&file)?;
244240
}

0 commit comments

Comments
 (0)