Fixed Game Variables that are nil being treated as 0 instead, fixed missing error message when a required plugin is missing

This commit is contained in:
Maruno17
2021-05-07 18:20:52 +01:00
parent 6efca2f9a8
commit 654be6c1de
6 changed files with 10 additions and 21 deletions

View File

@@ -579,6 +579,8 @@ module PluginManager
# clean the name to a simple string
dname = dname[0] if dname.is_a?(Array) && dname.length == 2
dname = dname[1] if dname.is_a?(Array) && dname.length == 3
# catch missing dependency
self.error("Plugin '#{o}' requires plugin '#{dname}' to work properly.") if !order.include?(dname)
# skip if already sorted
next if order.index(dname) > order.index(o)
# catch looping dependency issue