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 with comparing classes #92

Closed
Blueyescat opened this issue Aug 30, 2018 · 0 comments
Closed

Issue with comparing classes #92

Blueyescat opened this issue Aug 30, 2018 · 0 comments
Assignees
Labels
priority: medium Requires some attention, but does not need to be deployed immediately (most bugs) type: bug

Comments

@Blueyescat
Copy link

To reproduce

import:
	org.bukkit.entity.EntityType

function skriptToBukkitEntityType(entity: entitytype) :: object:
	loop ...EntityType.values():
		if loop-value.getEntityClass() is {_entity}.getType():
			return loop-value

Describe the bug
The condition is always negative, however this works:

if {_entity}.getType().equals(loop-value.getEntityClass()):

Server information

  • skript-mirror: 0.18.0
  • Skript: 2.2-dev37c
  • Paper: 1468
  • Minecraft: 1.12.2
  • Java: 1.8.0_181 (Java HotSpot(TM) 64-Bit Server VM 25.181-b13)
  • OS: Windows 10 amd64 10.0

Additional context
No errors/warnings in the console.

@btk5h btk5h added type: bug priority: medium Requires some attention, but does not need to be deployed immediately (most bugs) labels Sep 3, 2018
@btk5h btk5h closed this as completed in 7ea5fd3 Sep 15, 2018
@btk5h btk5h self-assigned this Sep 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: medium Requires some attention, but does not need to be deployed immediately (most bugs) type: bug
Projects
None yet
Development

No branches or pull requests

2 participants