mirror of
https://github.com/minetest-mods/digilines.git
synced 2025-07-01 07:50:22 +02:00
2
lcd.lua
2
lcd.lua
@ -97,7 +97,7 @@ local create_lines = function(text)
|
||||
remaining = remaining - 1
|
||||
end
|
||||
if remaining < string.len(word) then
|
||||
line = line .. string.sub(word, 1, math.min(remaining, string.len(word)))
|
||||
line = line .. string.sub(word, 1, remaining)
|
||||
word = string.sub(word, remaining+1, string.len(word))
|
||||
if flush_line_and_check_for_return() then return tab end
|
||||
else
|
||||
|
Reference in New Issue
Block a user