From 23c7ca57b7cba18bb3925b486077d487398eec07 Mon Sep 17 00:00:00 2001 From: jolesh Date: Fri, 11 Nov 2022 11:26:07 +0000 Subject: [PATCH] Fix "On the Way" being added with no rails --- src/awards.lua | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/awards.lua b/src/awards.lua index b62b4d9..b49253e 100644 --- a/src/awards.lua +++ b/src/awards.lua @@ -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", {