Skip to content

Commit 24e005d

Browse files
authored
docs: Update 0.9.9.md
1 parent a235065 commit 24e005d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

release-notes/0.9.9.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
![image](https://github.com/user-attachments/assets/6ae0f927-ea1b-4d90-a809-4cc513e49b18)
44

55
## Summary
6-
- Dynamic Systems are here! [^1]
7-
- it's now possible to query schedules, systems, and inject new event handlers from scripts themselves:
6+
- Dynamic Systems are here! [^1]. it's now possible to query schedules, systems, and inject new event handlers from scripts themselves:
87
```lua
98
local post_update_schedule = world.get_schedule_by_name("PostUpdate")
109

@@ -16,11 +15,9 @@
1615
:after(test_system)
1716
)
1817

19-
local system_before = world.add_system(
20-
post_update_schedule,
21-
system_builder("custom_system_before", script_id)
22-
:before(test_system)
23-
)
18+
function custom_system_after()
19+
print("i will run after the existing system in PostUpdate!")
20+
end
2421
```
2522
- `WithWorldGuard` and `HandlerContext<Plugin>` system parameters can be used in conjunction to create custom event handler systems
2623
```rust

0 commit comments

Comments
 (0)