forked from mtcontrib/homedecor_modpack
Fix crash for dummy bucket
This commit is contained in:
parent
e041ca9115
commit
493e74ab42
@ -344,10 +344,11 @@ if minetest.get_modpath("bucket") then
|
|||||||
minetest.chat_send_player(user:get_player_name(), "No room in your inventory to add a filled bucket!")
|
minetest.chat_send_player(user:get_player_name(), "No room in your inventory to add a filled bucket!")
|
||||||
end
|
end
|
||||||
return wielditem
|
return wielditem
|
||||||
else
|
else if original_bucket_on_use then
|
||||||
return original_bucket_on_use(itemstack, user, pointed_thing)
|
original_bucket_on_use(itemstack, user, pointed_thing)
|
||||||
end
|
else return end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user