mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-22 12:59:44 +00:00
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:
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);
|
||||
|
||||
Reference in new issue
Block a user