Fixes #105 (high RF/t usage on ext. storage)

This commit is contained in:
Raoul Van den Berge
2016-06-12 10:36:06 +02:00
parent acad85891b
commit a3f376e361

View File

@@ -148,7 +148,7 @@ public class TileExternalStorage extends TileMachine implements IStorageProvider
if (getFacingTile() instanceof IDrawerGroup) { if (getFacingTile() instanceof IDrawerGroup) {
IDrawerGroup group = (IDrawerGroup) getFacingTile(); IDrawerGroup group = (IDrawerGroup) getFacingTile();
energyUsage = group.getDrawerCount() * 2; energyUsage = group.getDrawerCount();
stored = 0; stored = 0;
capacity = 0; capacity = 0;
@@ -167,7 +167,7 @@ public class TileExternalStorage extends TileMachine implements IStorageProvider
storages.add(storage); storages.add(storage);
energyUsage = 2; energyUsage = 1;
stored = storage.getStored(); stored = storage.getStored();
capacity = storage.getCapacity(); capacity = storage.getCapacity();
} else { } else {
@@ -178,9 +178,11 @@ public class TileExternalStorage extends TileMachine implements IStorageProvider
storages.add(storage); storages.add(storage);
energyUsage = 2; energyUsage = 1;
stored = storage.getStored(); stored = storage.getStored();
capacity = storage.getCapacity(); capacity = storage.getCapacity();
} else {
energyUsage = 0;
} }
} }
} }