diff options
| author | _Tradam <[email protected]> | 2021-12-30 07:33:12 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-30 07:33:12 -0500 |
| commit | 5ef652300e71b572ca58b061610d606840ce19a9 (patch) | |
| tree | b82c99051b378c18ad4a8af98292681869dfa5a7 /lib/felflame/system_manager.rb | |
| parent | ac8888f6682c68d74bfb362789fb43044e1c0961 (diff) | |
| download | FelECS-5ef652300e71b572ca58b061610d606840ce19a9.tar.gz FelECS-5ef652300e71b572ca58b061610d606840ce19a9.zip | |
Major 4.0 update (#12)
Check the changelog
Diffstat (limited to 'lib/felflame/system_manager.rb')
| -rw-r--r-- | lib/felflame/system_manager.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/felflame/system_manager.rb b/lib/felflame/system_manager.rb index cab2c4d..d936e8e 100644 --- a/lib/felflame/system_manager.rb +++ b/lib/felflame/system_manager.rb @@ -1,4 +1,4 @@ -class FelFlame +module FelFlame class Systems # How early this System should be executed in a list of Systems attr_accessor :priority @@ -14,7 +14,7 @@ class FelFlame def priority=(priority) @priority = priority - FelFlame::Stage.systems.sort_by!(&:priority) + FelFlame::Stage.systems = FelFlame::Stage.systems.sort_by(&:priority) end # Stores references to components or their managers that trigger # this component when a component or component from that manager |
