Made the onFirstTick methods use argument instead

This commit is contained in:
Technus 2016-09-22 18:16:31 +02:00
parent bd924faa07
commit 676e4c4e91
2 changed files with 10 additions and 10 deletions

View file

@ -117,12 +117,12 @@ public class GT_MetaTileEntity_MicrowaveEnergyTransmitter extends GT_MetaTileEnt
@Override
public void onFirstTick(IGregTechTileEntity aBaseMetaTileEntity) {
if (getBaseMetaTileEntity().isServerSide()) {
if (aBaseMetaTileEntity.isServerSide()) {
if ((this.mTargetX == 0) && (this.mTargetY == 0) && (this.mTargetZ == 0) && (this.mTargetD == 0)) {
this.mTargetX = getBaseMetaTileEntity().getXCoord();
this.mTargetY = getBaseMetaTileEntity().getYCoord();
this.mTargetZ = getBaseMetaTileEntity().getZCoord();
this.mTargetD = getBaseMetaTileEntity().getWorld().provider.dimensionId;
this.mTargetX = aBaseMetaTileEntity.getXCoord();
this.mTargetY = aBaseMetaTileEntity.getYCoord();
this.mTargetZ = aBaseMetaTileEntity.getZCoord();
this.mTargetD = aBaseMetaTileEntity.getWorld().provider.dimensionId;
}
this.hasBlock = checkForBlock();
}

View file

@ -202,12 +202,12 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank {
@Override
public void onFirstTick(IGregTechTileEntity aBaseMetaTileEntity) {
if (getBaseMetaTileEntity().isServerSide()) {
if (aBaseMetaTileEntity.isServerSide()) {
if ((this.mTargetX == 0) && (this.mTargetY == 0) && (this.mTargetZ == 0) && (this.mTargetD == 0)) {
this.mTargetX = getBaseMetaTileEntity().getXCoord();
this.mTargetY = getBaseMetaTileEntity().getYCoord();
this.mTargetZ = getBaseMetaTileEntity().getZCoord();
this.mTargetD = getBaseMetaTileEntity().getWorld().provider.dimensionId;
this.mTargetX = aBaseMetaTileEntity.getXCoord();
this.mTargetY = aBaseMetaTileEntity.getYCoord();
this.mTargetZ = aBaseMetaTileEntity.getZCoord();
this.mTargetD = aBaseMetaTileEntity.getWorld().provider.dimensionId;
}
this.hasBlock = checkForBlock();
}