@@ -10,9 +10,10 @@ use noita_api::{
10
10
CharacterDataComponent , CharacterPlatformingComponent , DamageModelComponent , EntityID ,
11
11
ExplodeOnDamageComponent , GhostComponent , IKLimbAttackerComponent , IKLimbComponent ,
12
12
IKLimbWalkerComponent , IKLimbsAnimatorComponent , Inventory2Component , ItemComponent ,
13
- ItemCostComponent , ItemPickUpperComponent , LaserEmitterComponent , LuaComponent , PhysData ,
14
- PhysicsAIComponent , PhysicsBody2Component , PhysicsBodyComponent , SpriteComponent ,
15
- StreamingKeepAliveComponent , VariableStorageComponent , VelocityComponent , WormComponent ,
13
+ ItemCostComponent , ItemPickUpperComponent , LaserEmitterComponent , LifetimeComponent ,
14
+ LuaComponent , PhysData , PhysicsAIComponent , PhysicsBody2Component , PhysicsBodyComponent ,
15
+ SpriteComponent , StreamingKeepAliveComponent , VariableStorageComponent , VelocityComponent ,
16
+ WormComponent ,
16
17
} ;
17
18
use rustc_hash:: { FxHashMap , FxHashSet } ;
18
19
use shared:: des:: TRANSFER_RADIUS ;
@@ -1751,6 +1752,7 @@ pub fn init_remote_entity(
1751
1752
"data/scripts/buildings/statue_hand_state.lua" ,
1752
1753
"data/scripts/buildings/failed_alchemist_orb.lua" ,
1753
1754
"data/scripts/buildings/ghost_crystal.lua" ,
1755
+ "data/scripts/buildings/snowcrystal.lua" ,
1754
1756
]
1755
1757
. contains ( & & * lua. script_source_file ( ) ?)
1756
1758
|| [ "data/scripts/items/die_roll.lua" ] . contains ( & & * lua. script_enabled_changed ( ) ?)
@@ -1780,6 +1782,11 @@ pub fn init_remote_entity(
1780
1782
lua. set_script_death ( "data/scripts/animals/boss_dragon_death.lua" . into ( ) ) ?;
1781
1783
lua. set_execute_every_n_frame ( -1 ) ?;
1782
1784
}
1785
+ if let Some ( life) =
1786
+ entity. try_get_first_component_including_disabled :: < LifetimeComponent > ( None ) ?
1787
+ {
1788
+ life. set_lifetime ( i32:: MAX ) ?;
1789
+ }
1783
1790
if let Some ( pickup) =
1784
1791
entity. try_get_first_component_including_disabled :: < ItemPickUpperComponent > ( None ) ?
1785
1792
{
0 commit comments