Fix sus stew not leaving bowl after use

This commit is contained in:
Eliy21 2024-01-16 09:08:45 +00:00
parent 109aed75df
commit 4dd04b4c91
1 changed files with 6 additions and 0 deletions

View File

@ -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