From 8dec89bb5032ad4dfcf2a6c264df5d3aeda162bc Mon Sep 17 00:00:00 2001 From: Maruno17 Date: Sat, 12 Jun 2021 17:23:15 +0100 Subject: [PATCH] Fixed typo in Plugin Manager, fixed problems when you have multiple dependent events and you remove one --- Data/Scripts/001_Technical/005_PluginManager.rb | 2 +- Data/Scripts/004_Game classes/012_Game_DependentEvents.rb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Data/Scripts/001_Technical/005_PluginManager.rb b/Data/Scripts/001_Technical/005_PluginManager.rb index 883c601c3..1f685aebd 100644 --- a/Data/Scripts/001_Technical/005_PluginManager.rb +++ b/Data/Scripts/001_Technical/005_PluginManager.rb @@ -260,7 +260,7 @@ module PluginManager dep_version = dep[2] optional = false exact = false - case def_arg + case dep_arg when :optional optional = true when :exact diff --git a/Data/Scripts/004_Game classes/012_Game_DependentEvents.rb b/Data/Scripts/004_Game classes/012_Game_DependentEvents.rb index a0618ba65..078c000df 100644 --- a/Data/Scripts/004_Game classes/012_Game_DependentEvents.rb +++ b/Data/Scripts/004_Game classes/012_Game_DependentEvents.rb @@ -433,9 +433,9 @@ class DependentEvents @realEvents[i]=nil @lastUpdate+=1 end - events.compact! - @realEvents.compact! end + events.compact! + @realEvents.compact! end def getEventByName(name) @@ -463,9 +463,9 @@ class DependentEvents @realEvents[i]=nil @lastUpdate+=1 end - events.compact! - @realEvents.compact! end + events.compact! + @realEvents.compact! end def addEvent(event,eventName=nil,commonEvent=nil)