mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-30 06:21:05 +01:00
Don't use up bucket contents in creative mode
This commit is contained in:
parent
71a52de557
commit
4706fe243a
1 changed files with 5 additions and 1 deletions
|
@ -99,7 +99,11 @@ function bucket.register_liquid(source, flowing, itemname, inventory_image, name
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
return {name="bucket:bucket_empty"}
|
return {name="bucket:bucket_empty"}
|
||||||
|
else
|
||||||
|
return {name=itemname}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue