mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 00:19:32 +01:00
Fix sus stew not leaving bowl after use
This commit is contained in:
parent
109aed75df
commit
4dd04b4c91
1 changed files with 6 additions and 0 deletions
|
@ -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.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
|
||||
|
||||
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 a new issue