forked from mtcontrib/mob_horse
		
	code tidy
This commit is contained in:
		
							
								
								
									
										13
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								init.lua
									
									
									
									
									
								
							@@ -10,11 +10,10 @@ else
 | 
				
			|||||||
	if minetest.get_modpath("intllib") then
 | 
						if minetest.get_modpath("intllib") then
 | 
				
			||||||
		dofile(minetest.get_modpath("intllib") .. "/init.lua")
 | 
							dofile(minetest.get_modpath("intllib") .. "/init.lua")
 | 
				
			||||||
		if intllib.make_gettext_pair then
 | 
							if intllib.make_gettext_pair then
 | 
				
			||||||
			gettext, ngettext = intllib.make_gettext_pair() -- new gettext method
 | 
								S = intllib.make_gettext_pair() -- new gettext method
 | 
				
			||||||
		else
 | 
							else
 | 
				
			||||||
			gettext = intllib.Getter() -- old text file method
 | 
								S = intllib.Getter() -- old text file method
 | 
				
			||||||
		end
 | 
							end
 | 
				
			||||||
		S = gettext
 | 
					 | 
				
			||||||
	else -- boilerplate function
 | 
						else -- boilerplate function
 | 
				
			||||||
		S = function(str, ...)
 | 
							S = function(str, ...)
 | 
				
			||||||
			local args = {...}
 | 
								local args = {...}
 | 
				
			||||||
@@ -27,11 +26,7 @@ end
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- 0.4.17 or 5.0 check
 | 
					-- 0.4.17 or 5.0 check
 | 
				
			||||||
local y_off = 20
 | 
					local y_off = minetest.features.object_independent_selectionbox and 10 or 20
 | 
				
			||||||
if minetest.features.object_independent_selectionbox then
 | 
					 | 
				
			||||||
	y_off = 10
 | 
					 | 
				
			||||||
end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- horse shoes (speed, jump, brake/reverse speed, overlay texture)
 | 
					-- horse shoes (speed, jump, brake/reverse speed, overlay texture)
 | 
				
			||||||
local shoes = {
 | 
					local shoes = {
 | 
				
			||||||
@@ -353,7 +348,6 @@ minetest.register_craft({
 | 
				
			|||||||
			{"ethereal:crystal_ingot", "", "ethereal:crystal_ingot"}
 | 
								{"ethereal:crystal_ingot", "", "ethereal:crystal_ingot"}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
 | 
					 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -367,7 +361,6 @@ lucky_block:add_blocks({
 | 
				
			|||||||
		{"dro", {"mobs:horseshoe_diamond"}},
 | 
							{"dro", {"mobs:horseshoe_diamond"}},
 | 
				
			||||||
		{"dro", {"mobs:horseshoe_crystal"}}
 | 
							{"dro", {"mobs:horseshoe_crystal"}}
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
 | 
					 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user