From 2be2a761bb3524217d83435945d09c371dacbd94 Mon Sep 17 00:00:00 2001 From: Chris Feger Date: Sun, 9 Oct 2022 11:03:37 -0700 Subject: [PATCH] Fix release compile --- src/gemshapesplus/GemShapesPlusMod.as | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/gemshapesplus/GemShapesPlusMod.as b/src/gemshapesplus/GemShapesPlusMod.as index d55a983..09135c1 100644 --- a/src/gemshapesplus/GemShapesPlusMod.as +++ b/src/gemshapesplus/GemShapesPlusMod.as @@ -21,10 +21,7 @@ package gemshapesplus public function get COREMOD_VERSION():String { return GemShapesPlusCoreMod.VERSION; } public static var logger:Logger; - - CONFIG::debug public static var bezel:Bezel; - CONFIG::debug private var gameObjects:Object; [Embed(source = "../../shapes/eight_petal.svg")] public static const g13:Class; @@ -70,14 +67,15 @@ package gemshapesplus public function bind(loader:Bezel, gameObjects:Object):void { + bezel = loader; + this.gameObjects = gameObjects; + CONFIG::debug { - bezel = loader; bezel.addEventListener("ingameNewScene", this.onNewScene); - this.gameObjects = gameObjects; } - if (bezel.mainLoader.gameClassFullyQualifiedName == "com.giab.games.gcfw.Main") + if (loader.mainLoader.gameClassFullyQualifiedName == "com.giab.games.gcfw.Main") { gemshapesplus.gcfw.ShapeAdder.addShapes(gameObjects.GV.gemBitmapCreator.mc); }