Fix nether mod with >minetest-0.4.15

Este commit está contenido en:
sys4
2017-10-28 18:17:58 +02:00
padre a68ce1dbc9
commit d3a7d82233
Se han modificado 4 ficheros con 12 adiciones y 7 borrados

Ver fichero

@@ -315,7 +315,9 @@ for n,data in ipairs(guide_infos) do
elseif typ == "x" then
x = math.max(x, content)
elseif typ == "text" then
local tab = minetest.splittext(content, guide_size.fx)
local wrap_func = minetest.wrap_text
if not wrap_func then wrap_func = minetest.splittext end
local tab = wrap_func(content, guide_size.fx)
local l = guide_size.cx
for _,str in ipairs(tab) do
form = form.."label["..guide_size.cx ..","..guide_size.cy+y..";"..str.."]"

Ver fichero

@@ -386,7 +386,9 @@ minetest.register_node("nether:apple", {
p_hunger = 30
end
hbhunger.hunger[user:get_player_name()] = p_hunger
hbhunger.set_hunger(user)
local save_hunger = hbhunger.save_hunger
if not save_hunger then save_hunger = hbhunger.set_hunger end
save_hunger(user)
local amount = math.random(4, 6)
inv:add_item("main", {name="nether:blood_extracted", count=math.floor(amount/3)})