-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix removal of script contexts (#81)
* mmm * same behaviour as for lua * some printing * setup an example that demonstrates the issue * fixed the bug lol * if a function isnt found, dont scream in the console * Update multiple_events_rhai.rhai * fix clippy? * using the ScriptLoaded event * filter so we only get entities that still have to call "on_init" * this shows the problem * on_test is called on 1 entity, all others are removed * aaa * giving script id instead of enttiy id * Revert "giving script id instead of enttiy id" This reverts commit ab5062a. * that should be fixed. but funny enough, a script still somehow exists. * Revert "Revert "giving script id instead of enttiy id"" This reverts commit 13df73f. * this fixes the bug. * removed "on_test" * Update bevy_mod_scripting_core/src/systems.rs Co-authored-by: Maksymilian Mozolewski <[email protected]> * applied suggestions / fixed errors --------- Co-authored-by: Maksymilian Mozolewski <[email protected]>
- Loading branch information
Showing
3 changed files
with
44 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters