Signs: cut too long text

This commit is contained in:
Maksim 2020-07-01 10:30:38 +02:00
parent feb60467bc
commit 7264d70438

View File

@ -231,6 +231,7 @@ local function receive_fields(pos, _, fields, sender, wall)
if minetest.is_protected(pos, sender:get_player_name()) then
return
end
text = text:sub(1, 256)
local p2 = minetest.get_node(pos).param2
local sign_pos = sign_positions
if wall then