Initial untested port to new internal power system.
This resets all the machines internal power buffer
This commit is contained in:
parent
984b502ded
commit
e9ece63a99
28 changed files with 580 additions and 486 deletions
|
@ -41,7 +41,8 @@ public class FarmTree implements IFarmLogicDevice {
|
|||
if (tileFarm.getWorldObj().isRemote) {
|
||||
return;
|
||||
}
|
||||
if(tileFarm.energy.useEnergy(ConfigTechReborn.farmEu)){
|
||||
if(tileFarm.canUseEnergy(ConfigTechReborn.farmEu)){
|
||||
tileFarm.useEnergy(ConfigTechReborn.farmEu);
|
||||
if (tileFarm.getWorldObj().getTotalWorldTime() % 20 == 0 || tileFarm.inventory.hasChanged) {
|
||||
calculateFarmLand(tileFarm);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue