Skip to content

Code blunder #279

@kemazode

Description

@kemazode

in init.lua:1210
there is this piece of code

	if instance then
		self:swapTile(instance, tile)
	else
		self:addNewLayerTile(layer, tile, x, y)
	end
	layer.data[y][x] = tile

i wondered why I couldn't change a tile, with lua saying me that the tile is a number
i found out it shoud be changed to this

	if instance then
		self:swapTile(instance, tile)
	else
		self:addNewLayerTile(layer, nil, tile, x, y)
	end
	layer.data[y][x] = tile
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions