pixi-rainman-game-engine 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -154,10 +154,12 @@ export class AbstractController {
154
154
  this.buttonsEventManager.initInfoButtonEvent();
155
155
  this.buttonsEventManager.initMoreButtonEvent();
156
156
  this.buttonsEventManager.initAutoplayButtonEvent();
157
- this.buttonsEventManager.initGambleButton(() => {
158
- RainMan.settingsStore.gambleGameUsed = true;
159
- this.mainContainer.invokeGambleGame();
160
- }, this.lastWinAmount === 0);
157
+ if (RainMan.componentRegistry.has(BUTTONS.gamble)) {
158
+ this.buttonsEventManager.initGambleButton(() => {
159
+ RainMan.settingsStore.gambleGameUsed = true;
160
+ this.mainContainer.invokeGambleGame();
161
+ }, this.lastWinAmount === 0);
162
+ }
161
163
  RainMan.componentRegistry.get(SpeedControlButton.registryName).setOnClick(() => {
162
164
  this.quickStopController.speedPopupDisabled = true;
163
165
  RainMan.componentRegistry.nextSpeedLevel();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixi-rainman-game-engine",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "This repository contains all of the mechanics that used in rainman games.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",