Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code blunder #279

Open
kemazode opened this issue Jun 2, 2023 · 0 comments
Open

Code blunder #279

kemazode opened this issue Jun 2, 2023 · 0 comments

Comments

@kemazode
Copy link

kemazode commented Jun 2, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant