diff options
| author | Technus <daniel112092@gmail.com> | 2017-04-27 19:03:07 +0200 |
|---|---|---|
| committer | Technus <daniel112092@gmail.com> | 2017-04-27 19:03:07 +0200 |
| commit | 244ef3810efd241766601327a28ea3053d1b2744 (patch) | |
| tree | 13fb82382a9ee1ac202a8384e68099208c1c24f0 /src/main/java/gregtech/api/metatileentity/implementations | |
| parent | f6214c5b25f870fd61cf4545f155f4d0948b8d8b (diff) | |
| download | GT5-Unofficial-244ef3810efd241766601327a28ea3053d1b2744.tar.gz GT5-Unofficial-244ef3810efd241766601327a28ea3053d1b2744.tar.bz2 GT5-Unofficial-244ef3810efd241766601327a28ea3053d1b2744.zip | |
Buildable
Diffstat (limited to 'src/main/java/gregtech/api/metatileentity/implementations')
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Muffler.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Muffler.java index a99a5bae75..cdf19839a2 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Muffler.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Muffler.java @@ -98,7 +98,7 @@ public class GT_MetaTileEntity_Hatch_Muffler extends GT_MetaTileEntity_Hatch { boolean chk1,chk2,chk3; float ran1=floatGen.nextFloat(),ran2=0,ran3=0; chk1=ran1*100<calculatePollutionReduction(100); - if(GT_Pollution.getPollutionAtCoords(this.getBaseMetaTileEntity().getXCoord(), this.getBaseMetaTileEntity().getZCoord())>= GT_Mod.gregtechproxy.mPollutionSmogLimit){ + if(GT_Pollution.getPollutionAtCoords(aWorld,this.getBaseMetaTileEntity().getXCoord(), this.getBaseMetaTileEntity().getZCoord())>= GT_Mod.gregtechproxy.mPollutionSmogLimit){ ran2=floatGen.nextFloat(); ran3=floatGen.nextFloat(); chk2=ran2*100<calculatePollutionReduction(100); diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java index 0cd152bfdb..7228cdf2f1 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java @@ -376,7 +376,7 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity { * Gets the Amount of possibly outputted Items for loading the Output Stack Array from NBT. * This should be the largest Amount that can ever happen legitimately. */ - @Override + @Deprecated public int getAmountOfOutputs(){return -1;} /** @@ -499,7 +499,7 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity { } public void explodeMultiblock() { - GT_Pollution.addPollution(new ChunkPosition(this.getBaseMetaTileEntity().getXCoord(), this.getBaseMetaTileEntity().getYCoord(), this.getBaseMetaTileEntity().getZCoord()), 300000); + GT_Pollution.addPollution(getBaseMetaTileEntity().getWorld(),new ChunkPosition(this.getBaseMetaTileEntity().getXCoord(), this.getBaseMetaTileEntity().getYCoord(), this.getBaseMetaTileEntity().getZCoord()), 300000); mInventory[1] = null; for (MetaTileEntity tTileEntity : mInputBusses) tTileEntity.getBaseMetaTileEntity().doExplosion(V[8]); for (MetaTileEntity tTileEntity : mOutputBusses) tTileEntity.getBaseMetaTileEntity().doExplosion(V[8]); |
