Skip to content

Projectile comparison not functioning correctly #2286

Closed
@sjoerdtim

Description

@sjoerdtim

Description

When you try to compare a projectile in a on projectile hit event, it doesn't work unless you parse both as string.

Steps to Reproduce

on projectile hit:
	projectile is snowball:
		broadcast "Doesn't work!"
	projectile is a snowball:
		broadcast "Doesn't work!"
	"%projectile%" is "snowball":
		broadcast "Works!"

Expected Behavior

Expected behavior would be that all three of these conditions result in true.

Server Information

  • Server version/platform: Paper version git-Paper-639 (MC 1.13.2) (Implementing API version 1.13.2-R0.1-SNAPSHOT)
  • Skript version: Skript version 2.4-beta3

Additional Context

I have only tested this with snowballs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.priority: lowIssues that are not harmful to the experience but are related to useful changes or additions.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions