Put the footprint texture only on top of the nodes.

This commit is contained in:
Karamel 2017-08-30 11:03:08 +02:00
parent 4515adbe3b
commit 933bc27258

@ -138,9 +138,12 @@ function poschangelib.register_footprints(node_name, stomp_desc)
footprint_texture = stomp_desc.footprint_texture
end
if type(desc.tiles[1]) == 'table' then
-- Replace top texture
stomped_node_desc.tiles[1].name = desc.tiles[1].name .. '^' .. footprint_texture
else
-- Put footprints on top and keep the original texture for the rest
stomped_node_desc.tiles[1] = desc.tiles[1] .. '^' .. footprint_texture
stomped_node_desc.tiles[2] = desc.tiles[1]
end
-- Revert timer
if stomp_desc.duration_min then