mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-29 22:11:10 +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
|
||||
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 a new issue