mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 04:22:32 +00:00
Add Fluid Container Output and processing Slots to the Bottler
This commit is contained in:
1 parent
90ed57c742
commit
1ac7a7de42
9 files changed
+362
-66
No files matched your search
@@ -21,6 +21,9 @@ public class EnergyHelper {
|
||||
* @return true if the energy to do work was consumed
|
||||
*/
|
||||
public static boolean consumeEnergyToDoWork(EnergyManager energyManager, int ticksPerWorkCycle, int energyPerWorkCycle) {
|
||||
if(energyPerWorkCycle == 0){
|
||||
return true;
|
||||
}
|
||||
int energyPerCycle = (int) Math.ceil(energyPerWorkCycle / (float) ticksPerWorkCycle);
|
||||
if (energyManager.getEnergyStored() < energyPerCycle) {
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user