mirror of
				https://github.com/mt-mods/homedecor_modpack.git
				synced 2025-11-04 09:25:36 +01:00 
			
		
		
		
	Fix word wrapping
This commit is contained in:
		@@ -333,7 +333,7 @@ local function split_lines_and_words(text)
 | 
				
			|||||||
	if not text then return end
 | 
						if not text then return end
 | 
				
			||||||
	local lines = { }
 | 
						local lines = { }
 | 
				
			||||||
	for _, line in ipairs(text:split("\n")) do
 | 
						for _, line in ipairs(text:split("\n")) do
 | 
				
			||||||
		table.insert(lines, { line })
 | 
							table.insert(lines, line:split(" "))
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
	return lines
 | 
						return lines
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
@@ -501,7 +501,7 @@ signs_lib.update_sign = function(pos, fields, owner)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		local ownstr = ""
 | 
							local ownstr = ""
 | 
				
			||||||
		if owner then ownstr = "Locked sign, owned by "..owner.."\n" end
 | 
							if owner then ownstr = "Locked sign, owned by "..owner.."\n" end
 | 
				
			||||||
		
 | 
					
 | 
				
			||||||
		meta:set_string("infotext", ownstr..make_infotext(fields.text).." ")
 | 
							meta:set_string("infotext", ownstr..make_infotext(fields.text).." ")
 | 
				
			||||||
		meta:set_string("text", fields.text)
 | 
							meta:set_string("text", fields.text)
 | 
				
			||||||
		meta:set_int("__signslib_new_format", 1)
 | 
							meta:set_int("__signslib_new_format", 1)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user