mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 14:53:05 +00:00
Add API for multiblock components
This commit is contained in:
1 parent
14bdab069e
commit
731d15fbd5
56 files changed
+1828
-1951
No files matched your search
@@ -43,7 +43,7 @@ public class TriggerLowFertilizer extends Trigger {
|
||||
}
|
||||
|
||||
TileHatch tileHatch = (TileHatch) tile;
|
||||
IInventory fertilizerInventory = tileHatch.getFarmController().getFarmInventory().getFertilizerInventory();
|
||||
IInventory fertilizerInventory = tileHatch.getMultiblockLogic().getController().getFarmInventory().getFertilizerInventory();
|
||||
return InventoryUtil.containsPercent(fertilizerInventory, threshold);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user