Fix craft counting for some objects
This commit is contained in:
parent
d95da0b115
commit
23ca4de5ca
2
api.lua
2
api.lua
@ -510,7 +510,7 @@ function sys4_achievements.formatShowto(text)
|
|||||||
return tt
|
return tt
|
||||||
end
|
end
|
||||||
|
|
||||||
return ""
|
return ""
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Redefenition of awards.showto
|
-- Redefenition of awards.showto
|
||||||
|
4
init.lua
4
init.lua
@ -1625,12 +1625,12 @@ sys4_achievements.register_onCraft(
|
|||||||
|
|
||||||
if node == 'vessels:glass_bottle' then
|
if node == 'vessels:glass_bottle' then
|
||||||
mod = 'vessels'
|
mod = 'vessels'
|
||||||
items = {'vessels:glass_bottle', 'vessels:drinking_glass', 'vessels:glass_fragments'}
|
items = {'glass_bottle', 'steel_bottle', 'drinking_glass', 'glass_fragments'}
|
||||||
end
|
end
|
||||||
|
|
||||||
if node == 'beds:bed_bottom' then
|
if node == 'beds:bed_bottom' then
|
||||||
mod = 'beds'
|
mod = 'beds'
|
||||||
items = {'beds:bed_bottom', 'beds:fancy_bed_bottom'}
|
items = {'bed_bottom', 'fancy_bed_bottom'}
|
||||||
end
|
end
|
||||||
|
|
||||||
local count = sys4_achievements.getItemCount("craft", mod, items, playern, data)
|
local count = sys4_achievements.getItemCount("craft", mod, items, playern, data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user