Fix entity with rotated LCD

This commit is contained in:
GreenXenith
2018-12-03 19:20:21 -08:00
parent b4f96d5d25
commit 076e861b7d

View File

@ -170,6 +170,12 @@ local prepare_writing = function(pos)
local entity = get_entity(pos) local entity = get_entity(pos)
if entity then if entity then
set_texture(entity) set_texture(entity)
local lcd_info = lcds[minetest.get_node(pos).param2]
if not lcd_info then
return
end
entity.object:set_pos(vector.add(pos, lcd_info.delta))
entity.object:set_yaw(lcd_info.yaw or 0)
end end
end end