Use new getTorusSizeCache
This commit is contained in:
parent
b7fa791649
commit
286cf17811
1 changed files with 2 additions and 2 deletions
|
@ -127,10 +127,10 @@ public class GuiFusionReactor extends GuiBase<BuiltScreenHandler> {
|
|||
}
|
||||
|
||||
public Optional<Pair<Integer, Integer>> getCoilStackCount() {
|
||||
if (!Torus.TORUS_SIZE_MAP.containsKey(blockEntity.size)) {
|
||||
if (!Torus.getTorusSizeCache().containsKey(blockEntity.size)) {
|
||||
return Optional.empty();
|
||||
}
|
||||
int count = Torus.TORUS_SIZE_MAP.get(blockEntity.size);
|
||||
int count = Torus.getTorusSizeCache().get(blockEntity.size);
|
||||
return Optional.of(Pair.of(count / 64, count % 64));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue