forked from MineClone5/MineClone5
Don't use up bucket contents in creative mode
This commit is contained in:
parent
71a52de557
commit
4706fe243a
|
@ -99,7 +99,11 @@ function bucket.register_liquid(source, flowing, itemname, inventory_image, name
|
|||
return
|
||||
end
|
||||
end
|
||||
return {name="bucket:bucket_empty"}
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
return {name="bucket:bucket_empty"}
|
||||
else
|
||||
return {name=itemname}
|
||||
end
|
||||
end
|
||||
})
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue