-
-
Notifications
You must be signed in to change notification settings - Fork 430
Can't change the damage anymore after the event has already passed #8203
Copy link
Copy link
Open
Labels
bugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.An 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.The issue has been fully resolved and the change will be in the next Skript update.
Description
Skript/Server Version
2.12.2Bug Description
Getting an error that says I cannot change the damage after the damage event has already happened.
Expected Behavior
To allow me to change the damage when the event hasn't been delayed.
Steps to Reproduce
options:
world: "lobby"
on damage of player:
world of victim is {@world}
if damage cause is void:
teleport victim to spawn of world {@world}
cancel event
stop
if damage cause is fall:
cancel event
stop
set damage to 0
Errors or Screenshots
[00:21:46 INFO]: [Skript] Line 13: (test.sk)
[00:21:46 INFO]: Can't change the damage anymore after the event has already passed
[00:21:46 INFO]: Line: set damage to 0
Other
It seems to be from the teleport effect. Probably because it can teleport players async if paper is used.
It shouldn't be blocking, effects don't return.
Agreement
- I have read the guidelines above and affirm I am following them with this report.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.An 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.The issue has been fully resolved and the change will be in the next Skript update.
Type
Projects
Status
In Progress