#1273 Farming Stations not accepting enough power to keep up

This commit is contained in:
CrazyPants committed 2014-11-25 14:07:16 +08:00
1 parent f377f2f602
commit 29f9f034af
2 files changed
+7 -3

No files matched your search

+1
View File
@@ -15,6 +15,7 @@ Changes
Bugs
- Fix outer corners on connected texture blocks not being metadata sensitive when they should be
- #1300 Farming Station won't take MFR Rubber trees
- #1273 Farming Stations not accepting enough power to keep up
------------------------------------------------------
@@ -530,15 +530,18 @@ public class TileFarmStation extends AbstractPoweredTaskEntity {
int ppt = getPowerUsePerTick();
switch (capacitorType.ordinal()) {
case 1:
cap = new BasicCapacitor(ppt * 4, 500000);
cap = new BasicCapacitor(ppt * 40, 500000);
break;
case 2:
cap = new BasicCapacitor(ppt * 4, 1000000);
cap = new BasicCapacitor(ppt * 40, 1000000);
break;
default:
cap = new BasicCapacitor(ppt * 4, 250000);
cap = new BasicCapacitor(ppt * 40, 250000);
break;
}
if(getEnergyStored() > getMaxEnergyStored()) {
setEnergyStored(getMaxEnergyStored());
}
}