Partially Revert "Swapping out deprecated method for non-deprecated call."

This reverts commit fafee34803.

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.
This commit is contained in:
mezz committed 2014-12-04 18:28:39 -08:00
1 parent f6a166c87f
commit 4c6a461425
1 file changed
+1 -1
@@ -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);