diff options
author | Jason Mitchell <mitchej+github@gmail.com> | 2021-12-10 05:25:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-10 14:25:29 +0100 |
commit | fe883d00df245c726dca6271978b8aed739d4a28 (patch) | |
tree | 376f627d3a36045914e9b26a232d810abf13fd4d /src/main/java/gregtech/api/metatileentity/implementations | |
parent | 3922d6ca26c6ce9cd8370ea59015224b48c0f204 (diff) | |
download | GT5-Unofficial-fe883d00df245c726dca6271978b8aed739d4a28.tar.gz GT5-Unofficial-fe883d00df245c726dca6271978b8aed739d4a28.tar.bz2 GT5-Unofficial-fe883d00df245c726dca6271978b8aed739d4a28.zip |
Overflows overflows everywhere (#791)
* Reformat
* Stop energy calcs from overflowing by switching int->long in several places in the new graph code to be consistent with how they're used elsewhere.
Diffstat (limited to 'src/main/java/gregtech/api/metatileentity/implementations')
-rw-r--r-- | src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Cable.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Cable.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Cable.java index 2764eeb07e..8666f609b6 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Cable.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Cable.java @@ -372,8 +372,8 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile public String[] getInfoData() { BaseMetaPipeEntity base = (BaseMetaPipeEntity) getBaseMetaTileEntity(); PowerNodePath path =(PowerNodePath) base.getNodePath(); - int amps = 0; - int volts = 0; + long amps = 0; + long volts = 0; if (path != null) { amps = path.getAmps(); volts = path.getVoltage(this); |