Made the onFirstTick methods use argument instead
This commit is contained in:
parent
bd924faa07
commit
676e4c4e91
2 changed files with 10 additions and 10 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue