Handle lava correctly.
This commit is contained in:
parent
05dab8ff81
commit
b138bad822
1 changed files with 5 additions and 0 deletions
|
@ -97,6 +97,11 @@ minetest.register_craftitem("fun_caves:bucket_wood_empty", {
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if node and node.name:find('lava') or node.name:find('molten') then
|
||||||
|
itemstack:set_count(itemstack:get_count() - 1)
|
||||||
|
return itemstack
|
||||||
|
end
|
||||||
|
|
||||||
local item_count = user:get_wielded_item():get_count()
|
local item_count = user:get_wielded_item():get_count()
|
||||||
|
|
||||||
-- default set to return filled bucket
|
-- default set to return filled bucket
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue