Page 1 of 1

Weird lighting bug

PostPosted: Sun Sep 30, 2012 10:51
by Jonjeg
Hi, today, while working on a mod, i saw this strange bug occuring at night
Edit: i was indeed unclear. The bug is the fact that without any light source near theses nodes, when i put one of them againt a wall or a corner, the lighting go up. Same when i pile them.
Here my code
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
minetest.register_node("test_mod:pos_debug", {
    description = "Air Info Pos",
    drawtype = "glasslike",
    tiles = {"default_sign_wall.png"},
    walkable = false,
    is_ground_content = false,
    light_propagates = true,
    sunlight_propagates = true,
    selection_box = {
        type = "fixed",
        fixed = {0, 0, 0, 0, 0, 0},
    },
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("infotext", "X:"..round(pos.x).."Y:"..round(pos.y).."Z:"..round(pos.z))
    end,
    groups = {not_in_creative_inventory=2,dig_immediate=2},
})

When i put 4 nodes in a square, i get this during night time :
Image
I know that dont come from any mods currently installed.

PostPosted: Sun Sep 30, 2012 11:03
by Echo
and the strange thing is?
the light? (is there a torch?) or haven't you used the latest version of walking light mod and "lost" some light (didn't enforce update the illumination)?
or the four dark squares because of the used tile "default_sign_wall.png"?

PostPosted: Sun Sep 30, 2012 14:39
by irksomeduck
Yeah, I have this problem too, but I only know of a mod that causes it. In the snow biome mod, ice and snow blocks can be a bit buggy and go black/invisible.

PostPosted: Wed Oct 03, 2012 16:27
by CTMN
Try to place and remove a torch.

When I look at the picture, I see something on the black things. Can u make the picture brighter and look at it? It seems to be like an image or something.