diff options
author | Blood-Asp <bloodasphendrik@gmail.com> | 2016-07-03 18:31:06 +0200 |
---|---|---|
committer | Blood-Asp <bloodasphendrik@gmail.com> | 2016-07-03 18:31:06 +0200 |
commit | 57deb3b3e13091f6c4fe2169cd878c75451cfdce (patch) | |
tree | 303463bbbf5a97df784f24f63a5ffacaf7670662 /src/main/java/gregtech/api/util | |
parent | d21357bd848d3c6a184da4b6601839f8ab81bc56 (diff) | |
download | GT5-Unofficial-57deb3b3e13091f6c4fe2169cd878c75451cfdce.tar.gz GT5-Unofficial-57deb3b3e13091f6c4fe2169cd878c75451cfdce.tar.bz2 GT5-Unofficial-57deb3b3e13091f6c4fe2169cd878c75451cfdce.zip |
Pollution basework
Diffstat (limited to 'src/main/java/gregtech/api/util')
-rw-r--r-- | src/main/java/gregtech/api/util/GT_Utility.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/gregtech/api/util/GT_Utility.java b/src/main/java/gregtech/api/util/GT_Utility.java index c6d1ab5285..6a91675ced 100644 --- a/src/main/java/gregtech/api/util/GT_Utility.java +++ b/src/main/java/gregtech/api/util/GT_Utility.java @@ -1532,15 +1532,17 @@ public class GT_Utility { } int tAmount = (int) (Math.pow(amount, 5) / 100); ChunkPosition tPos = new ChunkPosition(aX/16, 1, aZ/16); + int[] tInts = new int[2]; if(GT_Proxy.chunkData.containsKey(tPos)){ - int[] tInts = GT_Proxy.chunkData.get(tPos); + tInts = GT_Proxy.chunkData.get(tPos); if(tInts.length>0){ if(tInts[0]>=0){tAmount = tInts[0];} } GT_Proxy.chunkData.remove(tPos); } tAmount = tAmount - 5; - GT_Proxy.chunkData.put(tPos, new int[]{tAmount}); + tInts[0] = tAmount; + GT_Proxy.chunkData.put(tPos, tInts); return new FluidStack(tFluid, tAmount); } |