1
0
Fork 0

Fix incorrect text rotation when sign text updates

objects
Wuzzy 2019-02-18 20:59:25 +01:00
parent d0e3862356
commit 37b9a8f6bf
1 changed files with 0 additions and 7 deletions

View File

@ -220,13 +220,6 @@ local update_sign = function(pos, fields, sender)
x = pos.x + sign_info.delta.x, x = pos.x + sign_info.delta.x,
y = pos.y + sign_info.delta.y, y = pos.y + sign_info.delta.y,
z = pos.z + sign_info.delta.z}, "mcl_signs:text") z = pos.z + sign_info.delta.z}, "mcl_signs:text")
if nn == "mcl_signs:standing_sign22_5" then
sign_info.yaw = sign_info.yaw + math.pi / 8
elseif nn == "mcl_signs:standing_sign45" then
sign_info.yaw = sign_info.yaw + 2 * (math.pi / 8)
elseif nn == "mcl_signs:standing_sign67_5" then
sign_info.yaw = sign_info.yaw + 3 * (math.pi / 8)
end
text_entity:get_luaentity()._signnodename = nn text_entity:get_luaentity()._signnodename = nn
text_entity:set_properties({textures={generate_texture(create_lines(text), nn)}}) text_entity:set_properties({textures={generate_texture(create_lines(text), nn)}})