Fix a bug with buckets

master
SmallJoker 2015-03-01 11:15:51 +01:00
parent 0dd0beba31
commit 66d2880104
1 changed files with 5 additions and 1 deletions

View File

@ -105,7 +105,11 @@ minetest.register_craftitem("bucket:bucket_empty", {
local ldef = bucket.liquids[node.name]
local item_count = itemstack:get_count()
if not (ldef or ldef.itemname or node.name ~= ldef.source) then
if not ldef then
return
end
if not ldef.itemname or node.name ~= ldef.source then
return
end