Skip to content

Subtraction can't be performed on an event and a dropped item #8357

@TheLimeGlass

Description

@TheLimeGlass

Skript/Server Version

[Skript] Server Version: 1.21.5-114-a1b3058 (MC: 1.21.5)
[Skript] Skript Version: 2.13.2 (skriptlang-github)
[Skript] Installed Skript Addons:
[Skript]  - skript-reflect v2.6.1 (https://github.com/SkriptLang/skript-reflect)
[Skript] Installed dependencies: None

Bug Description

Incorrect conflict with subtraction and the disallow natural despawning Item entity

Expected Behavior

To not conflict with the subtraction EffChange

Steps to Reproduce

options:
    type: gold sword

on item spawning of {@type}:
    prevent event-dropped item from naturally despawning

Errors or Screenshots

[17:30:03 INFO]: Line 6: (test.sk)
[17:30:03 INFO]:     subtraction can't be performed on an event and a dropped item
[17:30:03 INFO]:     Line: prevent event-dropped item from naturally despawning

Other

Fixed by using reflection prevent event.getEntity() from naturally despawning

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.needs triageAn issue that hasn't been classified or verified yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions