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

Raw syntax conflict. #125

Open
tim31205 opened this issue Sep 22, 2024 · 0 comments
Open

Raw syntax conflict. #125

tim31205 opened this issue Sep 22, 2024 · 0 comments

Comments

@tim31205
Copy link

Describe the bug
raw index of event-slot conflicts with [the] raw %objects% syntax.
When used, it shows the error: Can't compare an object with an integer.
This error appeared after installing skript-reflect.

To reproduce

command /menu:
	trigger:
		set {_menu} to a new chest inventory with 6 row named "menu"
		set slot 0 of {_menu} to dirt named "test"
		open {_menu} to player

on inventory click:
	name of event-inventory = "menu":
		cancel event
		if raw index of event-slot = 0:
			send "ok" to player

Expected behavior
It should return number.

Server information

  • skript-reflect: 2.5.1
  • Skript: 2.9.2
  • Paper: 1.21.1 - 85
  • Minecraft: 1.21.1
  • Java: 21.0.4
  • OS: Windows 11
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