forked from minetest-mods/MoreMesecons
		
	Merge remote-tracking branch 'upstream/master'
This commit is contained in:
		| @@ -1,2 +1,3 @@ | ||||
| mesecons | ||||
| mesecons_luacontroller | ||||
| moremesecons_utils | ||||
|   | ||||
| @@ -1,7 +1,3 @@ | ||||
| --[[ | ||||
| vector_extras there: https://github.com/HybridDog/vector_extras | ||||
| ]] | ||||
|  | ||||
| local templates = {MoreMesecons = { | ||||
| 	logic = [[-- AND | ||||
| port.a = pin.b and pin.c | ||||
| @@ -80,14 +76,17 @@ end]] | ||||
| local file_path = minetest.get_worldpath().."/MoreMesecons_lctt" | ||||
|  | ||||
| -- load templates from a compressed file | ||||
| local templates_file = io.open(file_path, "rb") | ||||
| if templates_file then | ||||
| 	local templates_raw = templates_file:read("*all") | ||||
| 	io.close(templates_file) | ||||
| 	if templates_raw | ||||
| 	and templates_raw ~= "" then | ||||
| 		for name,t in pairs(minetest.deserialize(minetest.decompress(templates_raw))) do | ||||
| 			templates[name] = t | ||||
| do | ||||
| 	local templates_file = io.open(file_path, "rb") | ||||
| 	if templates_file then | ||||
| 		local templates_raw = templates_file:read("*all") | ||||
| 		io.close(templates_file) | ||||
| 		if templates_raw | ||||
| 		and templates_raw ~= "" then | ||||
| 			local data = minetest.deserialize(minetest.decompress(templates_raw)) | ||||
| 			for name,t in pairs(data) do | ||||
| 				templates[name] = t | ||||
| 			end | ||||
| 		end | ||||
| 	end | ||||
| end | ||||
|   | ||||
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 290 B After Width: | Height: | Size: 227 B | 
		Reference in New Issue
	
	Block a user