unwanted event-block handling changes #72
Labels
bug
An issue that needs to be fixed. Alternatively, a PR fixing an issue.
priority: medium
Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).
All of a sudden event-block handling has changed and is being done in a very retarded way which breaks a lot of backwards compatibility.
The code below used to work and now it doesn't. In the past Skript held the value of event-block and you could reliably use it in your code to refer to the block which was the event-block at the moment of the event happening. "if event-block is {@kehikko-tammi}" would be true even after waiting for 1 tick and confirming that the block at the location of event-block has indeed changed to air, ie:
Now as a workaround you have to use the code below:
Which proves that Skript has started handling "event-block" in a very different way - it's updating it's value -> making extra checks -> making things run slower as a consequence (the proper way to check the true and current event-block was to check "block at location of event-block" if you wanted to know what it is).
This change makes the code structure more constrained and longer than necessary which is not good. This needs to be reverted back to the way it was.
The text was updated successfully, but these errors were encountered: