From 2255e3bfc4a1d255f9bff464c3169458078291b3 Mon Sep 17 00:00:00 2001 From: willyb321 Date: Thu, 7 Jun 2018 06:57:00 +1000 Subject: [PATCH] Temp fix for #273 Don't allow engineering on guardian PP --- src/app/components/StandardSlot.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/components/StandardSlot.jsx b/src/app/components/StandardSlot.jsx index 0e9b6ae0..cfca8530 100644 --- a/src/app/components/StandardSlot.jsx +++ b/src/app/components/StandardSlot.jsx @@ -45,7 +45,7 @@ export default class StandardSlot extends TranslatedComponent { if(event.target.className == 'r') { this._toggleModifications(); } - this.props.onOpen(event); + this.props.onOpen(event); } } @@ -61,6 +61,9 @@ export default class StandardSlot extends TranslatedComponent { let classRating = m.class + m.rating; let menu; let validMods = m == null || !Modifications.modules[m.grp] ? [] : (Modifications.modules[m.grp].modifications || []); + if (m && m.name && m.name === 'Guardian Hybrid Power Plant') { + validMods = []; + } let showModuleResistances = Persist.showModuleResistances(); let mass = m.getMass() || m.cargo || m.fuel || 0;