Pollution fix?
This commit is contained in:
parent
697f4e6ac1
commit
c1120bf1fa
1 changed files with 7 additions and 1 deletions
|
@ -56,7 +56,13 @@ public class GT_Pollution {
|
|||
if(!GT_Proxy.chunkData.containsKey(tNPos)){
|
||||
GT_Utility.getUndergroundOil(aWorld,tPos.chunkPosX,tPos.chunkPosZ);
|
||||
}
|
||||
int tNPol = GT_Proxy.chunkData.get(tNPos)[1];
|
||||
int tNPol;
|
||||
try {
|
||||
tNPol = GT_Proxy.chunkData.get(tNPos)[1];
|
||||
}catch(Exception e){
|
||||
GT_Utility.getUndergroundOil(aWorld,tPos.chunkPosX,tPos.chunkPosZ);
|
||||
tNPol = GT_Proxy.chunkData.get(tNPos)[1];
|
||||
}
|
||||
if(tNPol*12 < tPollution*10){
|
||||
int tDiff = tPollution - tNPol;
|
||||
tDiff = tDiff/20;
|
||||
|
|
Loading…
Reference in a new issue