1
0
mirror of https://github.com/pyrollo/display_modpack.git synced 2025-07-08 19:10:50 +02:00

Added compatibility with advtrains mod

This commit is contained in:
Gabriel Pérez-Cerezo
2017-12-08 14:04:59 +01:00
parent dc264512e2
commit 63317776bd
3 changed files with 11 additions and 10 deletions

View File

@ -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