Fix Country Lode HUD Issue

Fixed the error that was thrown when the advancement is unlocked and also fixed the popup HUD so the advancement title fits correctly
This commit is contained in:
PrairieWind 2023-01-05 18:38:55 -07:00 committed by Gitea
parent 01bb753549
commit 6fd799ac42
3 changed files with 6 additions and 6 deletions

@ -305,7 +305,7 @@ function awards.unlock(name, award)
local one = player:hud_add({
hud_elem_type = "image",
name = "award_bg",
scale = {x = 1, y = 1},
scale = {x = 1.25, y = 1},
text = background,
position = {x = 0.5, y = 0},
offset = {x = 0, y = 138},
@ -329,7 +329,7 @@ function awards.unlock(name, award)
scale = {x = 100, y = 20},
text = hud_announce,
position = {x = 0.5, y = 0},
offset = {x = 0, y = 40},
offset = {x = 30, y = 40},
alignment = {x = 0, y = -1},
z_index = 102,
})
@ -340,7 +340,7 @@ function awards.unlock(name, award)
scale = {x = 100, y = 20},
text = title,
position = {x = 0.5, y = 0},
offset = {x = 30, y = 100},
offset = {x = 35, y = 100},
alignment = {x = 0, y = -1},
z_index = 102,
})
@ -355,7 +355,7 @@ function awards.unlock(name, award)
number = 2,
text = icon,
position = {x = 0.5, y = 0},
offset = {x = -110, y = 62},
offset = {x = -138, y = 62},
alignment = {x = 0, y = 0},
direction = 0,
z_index = 102,

@ -337,7 +337,7 @@ awards.register_achievement("mcl:fishyBusiness", {
-- Triggered in mcl_compass
awards.register_achievement("mcl:countryLode", {
title = S("Country Lode,\nTake Me Home"),
title = S("Country Lode, Take Me Home"),
description = S("Use a compass on a Lodestone."),
icon = "lodestone_side4.png",
type = "Advancement",

@ -69,7 +69,7 @@ The Cutest Predator=
Catch an Axolotl with a bucket!
Fishy Business=
Catch a fish.@nHint: Catch a fish, salmon, clownfish, or pufferfish.=
Country Lode,@nTake Me Home=
Country Lode, Take Me Home=
Use a compass on a Lodestone.=
Serious Dedication=
Use a Netherite Ingot to upgrade a hoe, and then completely reevaluate your life choices.=