Possible fix for scanner TE error

This commit is contained in:
Muramasa- 2016-09-26 14:03:20 +01:00 committed by Technus
parent 32fdda2a18
commit 601264e4bf

View file

@ -226,7 +226,7 @@ public class GT_MetaTileEntity_Scanner
@Override
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
if (mProgresstime >= (mMaxProgresstime - 1)) {
if (this.mOutputItems[0].getUnlocalizedName().equals("gt.metaitem.01.32707")) {
if ((this.mOutputItems[0] != null) && (this.mOutputItems[0].getUnlocalizedName().equals("gt.metaitem.01.32707"))) {
GT_Mod.instance.achievements.issueAchievement(aBaseMetaTileEntity.getWorld().getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), "scanning");
}
}