Remove mineturtle achievement if peaceful only

This commit is contained in:
Wuzzy 2019-09-03 23:05:19 +02:00
parent 524aa71aea
commit c6da0a69de

View File

@ -15,13 +15,17 @@ achievements.register_achievement(
times = 5, times = 5,
}) })
achievements.register_achievement( local peaceful_only = minetest.settings:get_bool("only_peaceful_mobs") or false
"bomb_has_been_defused",
{ if not peaceful_only then
title = S("Bomb has Been Defused!"), achievements.register_achievement(
description = S("Kill a mine turtle."), "bomb_has_been_defused",
times = 1, {
}) title = S("Bomb has Been Defused!"),
description = S("Kill a mine turtle."),
times = 1,
})
end
achievements.register_achievement( achievements.register_achievement(
"ranger", "ranger",