From 4c6a4614255fa83ceb1d888dcd5f795de626238a Mon Sep 17 00:00:00 2001 From: mezz Date: Thu, 4 Dec 2014 18:28:39 -0800 Subject: [PATCH] Partially Revert "Swapping out deprecated method for non-deprecated call." This reverts commit fafee3480343983930a46f3200b123d2a697c473. There are 3rd party housings that don't implement the new getErrorState() yet. We can only get rid of this with the next major API change. --- .../forestry/apiculture/genetics/AlleleEffectThrottled.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/forestry/apiculture/genetics/AlleleEffectThrottled.java b/src/main/java/forestry/apiculture/genetics/AlleleEffectThrottled.java index ec5a9382d..dfd554053 100755 --- a/src/main/java/forestry/apiculture/genetics/AlleleEffectThrottled.java +++ b/src/main/java/forestry/apiculture/genetics/AlleleEffectThrottled.java @@ -55,7 +55,7 @@ public abstract class AlleleEffectThrottled extends Allele implements IAlleleBee public boolean isHalted(IEffectData storedData, IBeeHousing housing) { - if (requiresWorkingQueen && housing.getErrorState() != EnumErrorCode.OK) + if (requiresWorkingQueen && housing.getErrorOrdinal() != EnumErrorCode.OK.ordinal()) return true; int throttle = storedData.getInteger(0);