diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2017-12-08 14:04:59 +0100 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2017-12-08 14:04:59 +0100 |
commit | 63317776bda02f413729e655b0f1e0e8c0973ccb (patch) | |
tree | 71a53f16da091e399d40239541711a54a7e47cfe /display_lib | |
parent | dc264512e27fa2c63df71e2d0c9b6a899541ba66 (diff) | |
download | display_modpack-63317776bda02f413729e655b0f1e0e8c0973ccb.tar.gz display_modpack-63317776bda02f413729e655b0f1e0e8c0973ccb.tar.bz2 display_modpack-63317776bda02f413729e655b0f1e0e8c0973ccb.zip |
Added compatibility with advtrains mod
Diffstat (limited to 'display_lib')
-rw-r--r-- | display_lib/init.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/display_lib/init.lua b/display_lib/init.lua index 4416928..210aac9 100644 --- a/display_lib/init.lua +++ b/display_lib/init.lua @@ -149,9 +149,10 @@ end --- On_activate callback for display_lib entities. Calls on_display_update callbacks --- of corresponding node for each entity. function display_lib.on_activate(entity, staticdata) - if entity then - call_node_on_display_update(entity.object:getpos(), entity.object) - end + if entity then + entity.object:set_armor_groups({immortal=1}) + call_node_on_display_update(entity.object:getpos(), entity.object) + end end --- On_place callback for display_lib items. Does nothing more than preventing item |