forked from mtcontrib/awards
		
	Fix "On the Way" being added with no rails
This commit is contained in:
		| @@ -291,19 +291,6 @@ if minetest.get_modpath("default") then | ||||
| 		return nil | ||||
| 	end) | ||||
|  | ||||
| 	-- On the way | ||||
| 	awards.register_award("award_on_the_way", { | ||||
| 		title = S("On The Way"), | ||||
| 		description = S("Place 100 rails."), | ||||
| 		icon = "awards_on_the_way.png", | ||||
| 		difficulty = 0.1, | ||||
| 		trigger = { | ||||
| 			type = "place", | ||||
| 			node = "default:rail", | ||||
| 			target = 100 | ||||
| 		} | ||||
| 	}) | ||||
|  | ||||
| 	awards.register_award("award_lumberjack_firstday", { | ||||
| 		title = S("First Day in the Woods"), | ||||
| 		description = S("Dig 6 tree blocks."), | ||||
| @@ -790,6 +777,21 @@ if minetest.get_modpath("default") then | ||||
| 	end) | ||||
| end | ||||
|  | ||||
| if minetest.get_modpath("carts") then | ||||
| 	-- On the way | ||||
| 	awards.register_award("award_on_the_way", { | ||||
| 		title = S("On The Way"), | ||||
| 		description = S("Place 100 rails."), | ||||
| 		icon = "awards_on_the_way.png", | ||||
| 		difficulty = 0.1, | ||||
| 		trigger = { | ||||
| 			type = "place", | ||||
| 			node = "group:rail", | ||||
| 			target = 100 | ||||
| 		} | ||||
| 	}) | ||||
| end | ||||
|  | ||||
| if minetest.get_modpath("bones") then | ||||
| 	-- Die near bones | ||||
| 	awards.register_award("award_the_stack", { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user