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

Issue in 'tiledProperties(properties)' of ponyTiled code #21

Open
jcbk101 opened this issue Jul 1, 2022 · 0 comments
Open

Issue in 'tiledProperties(properties)' of ponyTiled code #21

jcbk101 opened this issue Jul 1, 2022 · 0 comments

Comments

@jcbk101
Copy link

jcbk101 commented Jul 1, 2022

If i create a custom property in Tiled map editor, and is a 'bool' property that is set to false, and the custom property entered is the first in the list, then the properties never get converted.

properties[1].value

local function tiledProperties(properties)	
	if (#properties > 0) and properties[1].name and properties[1].value  then
		...
	end
end

Here is a fix... (properties[1].value ~= nil)

local function tiledProperties(properties)	
	if (#properties > 0) and properties[1].name and (properties[1].value ~= nil)  then
		...
	end
end
Anjilo added a commit to Anjilo/ponytiled that referenced this issue Sep 30, 2023
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