remove XP desc.

This commit is contained in:
tenplus1 2024-08-03 23:56:53 +01:00
parent 2795992207
commit 32affd255e

View File

@ -7,7 +7,7 @@
]]
ethereal = {version = "20240727"}
ethereal = {version = "20240803"}
local function setting(stype, name, default)
@ -98,8 +98,6 @@ function ethereal.check_creative(name)
end
-- helper function to add {eatable} group to food items
local mod_tt_base = minetest.get_modpath("tt_base") -- mod does similar to infotext
function ethereal.add_eatable(item, hp)
local def = minetest.registered_items[item]
@ -107,16 +105,10 @@ function ethereal.add_eatable(item, hp)
if def then
local groups = table.copy(def.groups) or {}
local txt = " (" ; if hp > 0 then txt = txt .. "+" end
txt = txt .. hp .. " HP)"
groups.eatable = hp ; groups.flammable = 2
if mod_tt_base == nil then
def.description = def.description .. txt
end
minetest.override_item(item, {description = def.description, groups = groups})
minetest.override_item(item, {groups = groups})
end
end