mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-28 06:11:47 +02:00
Fix nether mod with >minetest-0.4.15
This commit is contained in:
@ -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.."]"
|
||||
|
@ -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)})
|
||||
|
Reference in New Issue
Block a user