Page 1 of 1

Torches under water | Fackeln unter Wasser | Linternas bajo el agua

PostPosted: Sun Feb 23, 2014 14:11
by LPBewertungen
I've found a bug. You can place torches underwater. If is fixed in 0.5.0? Will there be 0.5.0? Or another new version? When is this?
Thanks for answers!
-------------------------------------------------------------------------------------------------------------------------
Ich habe einen Bug gefunden. Man kann Fackeln unter Wasser platzieren. Wird das mit 0.5.0 behoben? Wird es 0.5.0 geben? Oder eine andere neue Version? Wann erscheint diese?
Danke für Antworten!
------------------------------------------------------------------------------------------------------------------------He encontrado un error. Usted puede colocar linternas subacuáticas. Si se fija en 0.5.0? ¿Habrá 0.5.0? U otra nueva versión? Cuando es esto?
Gracias por las respuestas!

PostPosted: Sun Feb 23, 2014 14:26
by Topywo
That's not an error. It's a feature.

PostPosted: Sun Feb 23, 2014 14:39
by LPBewertungen
OK.

PostPosted: Tue Feb 25, 2014 01:56
by philipbenr
Topywo wrote:That's not an error. It's a feature.


"That isn't a bug, that is an undocumented feature" -- Microsoft Office employee

PostPosted: Sat Mar 01, 2014 21:48
by Casimir
I don't like that feature. So I wrote this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
local liquid_finite = minetest.setting_getbool("liquid_finite")

--
-- Remove nodes in liquids
--

minetest.register_abm({
    nodenames = {"group:dissolve"},
    neighbors = {"group:liquid"},
    interval = 2,
    chance = 5,
    action = function(pos, node)
        local above = {x=pos.x, y=pos.y+1, z=pos.z}
        local name = minetest.get_node(above).name
        local nodedef = minetest.registered_nodes[name]
        if nodedef and nodedef.liquidtype then
            if liquid_finite then
                minetest.set_node(pos, {name = "air"})
            else
                minetest.set_node(pos, {name = name})
            end
        end
    end,
})