Fixes #105 (high RF/t usage on ext. storage)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user