Bug in mod

  • buddy3
    11th February Member 0 Permalink

    I'm trying to make a mod (very unfinished), and i need it to check it's neighbors. However, when it's supposed to check it's neighbors, it checks itself? Is there anyway to fix it?

    Code: 

    elem.property(clsb, "Update", function (i,x,y)
    for r in sim.neighbors(x,y,1,1) do
    if (sim.partProperty(r, "type") ~= PT_CLSB) then
    sim.partChangeType(r, elem.DEFAULT_PT_FIRE)
    end
    end
    end)

    EDIT: FIXED IT NO HELP NEEDED

    Edited once by buddy3. Last: 11th February