mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 11:17:30 +01:00
Fix sus stew not leaving bowl after use
This commit is contained in:
parent
109aed75df
commit
4dd04b4c91
@ -95,6 +95,12 @@ local function eat_stew_delayed(itemstack, user, pointed_thing)
|
|||||||
mcl_hunger.eat_internal[name]._custom_var.user,
|
mcl_hunger.eat_internal[name]._custom_var.user,
|
||||||
mcl_hunger.eat_internal[name]._custom_var.pointed_thing
|
mcl_hunger.eat_internal[name]._custom_var.pointed_thing
|
||||||
)
|
)
|
||||||
|
|
||||||
|
local user = mcl_hunger.eat_internal[name]._custom_var.user
|
||||||
|
|
||||||
|
minetest.after(0, function()
|
||||||
|
user:get_inventory():set_stack("main", user:get_wield_index(), "mcl_core:bowl")
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
mcl_hunger.eat_internal[name]._custom_do_delayed = true -- Only _custom_wrapper will be executed after holding RMB or LMB within a specified delay
|
mcl_hunger.eat_internal[name]._custom_do_delayed = true -- Only _custom_wrapper will be executed after holding RMB or LMB within a specified delay
|
||||||
|
Loading…
Reference in New Issue
Block a user