Fixed typo in Plugin Manager, fixed problems when you have multiple dependent events and you remove one

This commit is contained in:
Maruno17
2021-06-12 17:23:15 +01:00
parent c402b02861
commit 8dec89bb50
2 changed files with 5 additions and 5 deletions

View File

@@ -260,7 +260,7 @@ module PluginManager
dep_version = dep[2] dep_version = dep[2]
optional = false optional = false
exact = false exact = false
case def_arg case dep_arg
when :optional when :optional
optional = true optional = true
when :exact when :exact

View File

@@ -433,9 +433,9 @@ class DependentEvents
@realEvents[i]=nil @realEvents[i]=nil
@lastUpdate+=1 @lastUpdate+=1
end end
events.compact!
@realEvents.compact!
end end
events.compact!
@realEvents.compact!
end end
def getEventByName(name) def getEventByName(name)
@@ -463,9 +463,9 @@ class DependentEvents
@realEvents[i]=nil @realEvents[i]=nil
@lastUpdate+=1 @lastUpdate+=1
end end
events.compact!
@realEvents.compact!
end end
events.compact!
@realEvents.compact!
end end
def addEvent(event,eventName=nil,commonEvent=nil) def addEvent(event,eventName=nil,commonEvent=nil)