mirror of
				https://github.com/mt-mods/signs_lib.git
				synced 2025-10-25 18:05:24 +02:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			2019-09-18
			...
			2019-09-18
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | e5d525c272 | ||
|  | a907f9535c | ||
|  | bbd580acb1 | 
							
								
								
									
										5
									
								
								api.lua
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								api.lua
									
									
									
									
									
								
							| @@ -96,7 +96,6 @@ minetest.register_entity("signs_lib:text", { | ||||
| }) | ||||
|  | ||||
| function signs_lib.delete_objects(pos) | ||||
| 	print("delete_objects()") | ||||
| 	local objects = minetest.get_objects_inside_radius(pos, 0.5) | ||||
| 	for _, v in ipairs(objects) do | ||||
| 		v:remove() | ||||
| @@ -104,7 +103,6 @@ function signs_lib.delete_objects(pos) | ||||
| end | ||||
|  | ||||
| function signs_lib.spawn_entity(pos, texture) | ||||
| 	print("spawn_entity()") | ||||
| 	local node = minetest.get_node(pos) | ||||
| 	local def = minetest.registered_items[node.name] | ||||
| 	if not def or not def.entity_info or not def.entity_info.yaw[node.param2 + 1] then return end | ||||
| @@ -421,6 +419,7 @@ end | ||||
| local function make_sign_texture(lines, pos) | ||||
| 	local node = minetest.get_node(pos) | ||||
| 	local def = minetest.registered_items[node.name] | ||||
| 	if not def or not def.entity_info then return end | ||||
|  | ||||
| 	local font_size | ||||
| 	local line_width | ||||
| @@ -465,7 +464,6 @@ function signs_lib.split_lines_and_words(text) | ||||
| end | ||||
|  | ||||
| function signs_lib.set_obj_text(pos, text) | ||||
| 	print("set_obj_text()") | ||||
| 	local split = signs_lib.split_lines_and_words | ||||
| 	local text_ansi = Utf8ToAnsi(text) | ||||
| 	local n = minetest.registered_nodes[minetest.get_node(pos).name] | ||||
| @@ -649,7 +647,6 @@ function signs_lib.check_for_ceiling(pointed_thing) | ||||
| end | ||||
|  | ||||
| function signs_lib.after_place_node(pos, placer, itemstack, pointed_thing, locked) | ||||
| 	print("after_place_node") | ||||
| 	local playername = placer:get_player_name() | ||||
| 	local def = minetest.registered_items[itemstack:get_name()] | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user