-
-
Notifications
You must be signed in to change notification settings - Fork 418
Description
Skript/Server Version
[21:55:07 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[21:55:07 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[21:55:07 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[21:55:07 INFO]: [Skript] Server Version: 1.21.10-113-9fc21bc (MC: 1.21.10)
[21:55:07 INFO]: [Skript] Skript Version: 2.14.0-pre2 (selfbuilt-unknown)
[21:55:07 INFO]: [Skript] Installed Skript Addons:
[21:55:07 INFO]: [Skript] - skript-placeholders v1.7.0 (https://github.com/APickledWalrus/skript-placeholders)
[21:55:07 INFO]: [Skript] - PoaSk v4.16.6 (https://github.com/Ekpoa/PoaSkRewritev2)
[21:55:07 INFO]: [Skript] - skript-gui v1.3.2 (https://github.com/APickledWalrus/skript-gui)
[21:55:07 INFO]: [Skript] - skript-reflect v2.6.2 (https://github.com/SkriptLang/skript-reflect)
[21:55:07 INFO]: [Skript] - skript-worldedit v1.1.2
[21:55:07 INFO]: [Skript] - SkBee v3.15.0 (https://github.com/ShaneBeee/SkBee)
[21:55:07 INFO]: [Skript] - skript-worldguard v1.0.1 (https://github.com/SkriptLang/skript-worldguard)
[21:55:07 INFO]: [Skript] Installed dependencies:
[21:55:07 INFO]: [Skript] - Vault v2.17.0
[21:55:07 INFO]: [Skript] - WorldGuard v7.0.15-beta-01+445a1d7Bug Description
When you reload a file containing a function, a different file that calls said function uses the old version of the function rather than the newly reloaded file. By reloading the different file that calls the function, it then updates to use the most recent version of the function.
Expected Behavior
Expected gui.sk to use most recent version of gui.sk's openGUI() function. Instead it saves an old entry and uses it until open.sk is reloaded.
Steps to Reproduce
- Initial state:
# gui.sk
function openGUI(p: player):
open chest inventory with 3 rows to {_p}
set slot 4 of top inventory of {_p} to dirt
# open.sk
command /gui:
trigger:
openGUI(player)
-
Insert
set slot 5 of top inventory of {_p} to diamondunderneath the dirt line in gui.sk -
Reload
gui.sk -
Enter
/guito open the GUI via the command defined inopen.sk -
Note how the diamond is not put into the GUI
-
Reload
open.sk -
Re-enter
/guito open the GUI -
The diamond is now in the GUI
Errors or Screenshots
No response
Other
Potentially has to do with efy's function rework (-sovde)
Also using a slightly modified version of 2.14-pre2 to add debug message for an issue regarding EntityData aliases not loading properly on startup. Should not impact this issue.
Agreement
- I have read the guidelines above and affirm I am following them with this report.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status