INDENTS
This commit is contained in:
parent
d8fd2c020b
commit
be8de36335
1 changed files with 64 additions and 61 deletions
|
@ -40,7 +40,7 @@ public class GT_Pollution {
|
|||
tList.remove(0);
|
||||
if(tPos!=null && GT_Proxy.chunkData.containsKey(tPos)){
|
||||
int tPollution = GT_Proxy.chunkData.get(tPos)[1];
|
||||
// System.out.println("process: "+tPos.chunkPosX+" "+tPos.chunkPosZ+" "+tPollution);
|
||||
// System.out.println("process: "+tPos.chunkPosX+" "+tPos.chunkPosZ+" "+tPollution);
|
||||
//Reduce pollution in chunk
|
||||
//tPollution = (int)(0.99f*tPollution);
|
||||
tPollution -= 3000;
|
||||
|
@ -71,7 +71,7 @@ public class GT_Pollution {
|
|||
GT_Proxy.chunkData.remove(tPos);
|
||||
GT_Proxy.chunkData.put(tPos, tArray);
|
||||
//Create Pollution effects
|
||||
// Smog filter TODO
|
||||
// Smog filter TODO
|
||||
if(tPollution > GT_Mod.gregtechproxy.mPollutionSmogLimit){
|
||||
AxisAlignedBB chunk = AxisAlignedBB.getBoundingBox(tPos.chunkPosX*16, 0, tPos.chunkPosZ*16, tPos.chunkPosX*16+16, 256, tPos.chunkPosZ*16+16);
|
||||
List<EntityLivingBase> tEntitys = aWorld.getEntitiesWithinAABB(EntityLivingBase.class, chunk);
|
||||
|
@ -82,7 +82,7 @@ public class GT_Pollution {
|
|||
tEnt.addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, Math.min(tPollution/1000,1000), 1));
|
||||
}
|
||||
}
|
||||
// Poison effects
|
||||
// Poison effects
|
||||
if(tPollution > GT_Mod.gregtechproxy.mPollutionPoisonLimit){
|
||||
//AxisAlignedBB chunk = AxisAlignedBB.getBoundingBox(tPos.chunkPosX*16, 0, tPos.chunkPosZ*16, tPos.chunkPosX*16+16, 256, tPos.chunkPosZ*16+16);
|
||||
//List<EntityLiving> tEntitys = aWorld.getEntitiesWithinAABB(EntityLiving.class, chunk);
|
||||
|
@ -92,7 +92,7 @@ public class GT_Pollution {
|
|||
tEnt.addPotionEffect(new PotionEffect(Potion.blindness.id, Math.min(tPollution/2000,1000), 1));
|
||||
}
|
||||
}
|
||||
// killing plants
|
||||
// killing plants
|
||||
if(tPollution > GT_Mod.gregtechproxy.mPollutionVegetationLimit){
|
||||
int f = 20;
|
||||
for(;f<(tPollution/25000);f++){
|
||||
|
@ -100,7 +100,10 @@ public class GT_Pollution {
|
|||
int y =60 +(-f+tRan.nextInt(f*2+1));
|
||||
int z =tPos.chunkPosZ*16+(tRan.nextInt(16));
|
||||
damageBlock(x, y, z, tPollution > GT_Mod.gregtechproxy.mPollutionSourRainLimit);
|
||||
}}}}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue