Skip to content

IllegalArgumentException - Entities cannot ride themselves #7385

@Fusezion

Description

@Fusezion

Skript/Server Version

[03:55:38 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[03:55:38 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[03:55:38 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[03:55:38 INFO]: [Skript] Server Version: 1.21.3-81-da71382 (MC: 1.21.3)
[03:55:38 INFO]: [Skript] Skript Version: 2.9.5 (skriptlang-github)
[03:55:38 INFO]: [Skript] Installed Skript Addons: 
[03:55:38 INFO]: [Skript]  - skript-gui v1.3 (https://github.com/APickledWalrus/skript-gui)
[03:55:38 INFO]: [Skript]  - DiSky v4.20.0
[03:55:38 INFO]: [Skript]  - skript-reflect v2.5.1 (https://github.com/SkriptLang/skript-reflect)
[03:55:38 INFO]: [Skript]  - SkQuery v4.1.10
[03:55:38 INFO]: [Skript]  - SkBee v3.6.6 (https://github.com/SkriptHub/SkBee)
[03:55:38 INFO]: [Skript] Installed dependencies: 
[03:55:38 INFO]: [Skript]  - Vault v1.7.3-b131
[03:55:38 INFO]: [Skript]  - WorldGuard v7.0.12+829a4a4

Bug Description

When making a entity ride an entity if both inputs are the same entity an illegalargumentexception will be thrown saying an entity cannot ride itself

Expected Behavior

Skript to internally skip an entity if they're the mount target

Steps to Reproduce

!make player ride player

Errors or Screenshots

https://gist.github.com/Fusezion/7f45d71f9acce6ff1a1186d871e4b742

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.completedThe issue has been fully resolved and the change will be in the next Skript update.priority: lowIssues that are not harmful to the experience but are related to useful changes or additions.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions