aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity
diff options
context:
space:
mode:
authorkorneel vandamme <krampus.sack.never@gmail.com>2020-02-23 20:06:54 +0100
committerkorneel vandamme <krampus.sack.never@gmail.com>2020-02-23 20:06:54 +0100
commitb0bdee4b66ba7e22f67554520abfaa986a3f47df (patch)
tree645748bdeefd2cc6bfa6f54f56d755f17c8d6813 /src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity
parent52cec59a102e3b18f8cca75e98c2d797bac4d19f (diff)
downloadGT5-Unofficial-b0bdee4b66ba7e22f67554520abfaa986a3f47df.tar.gz
GT5-Unofficial-b0bdee4b66ba7e22f67554520abfaa986a3f47df.tar.bz2
GT5-Unofficial-b0bdee4b66ba7e22f67554520abfaa986a3f47df.zip
attempt fix for safe making all gt machine sunbreakble
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/machines/GregtechMetaSafeBlockBase.java29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/machines/GregtechMetaSafeBlockBase.java b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/machines/GregtechMetaSafeBlockBase.java
index 9f331496b7..34b3e86c70 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/machines/GregtechMetaSafeBlockBase.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/machines/GregtechMetaSafeBlockBase.java
@@ -278,35 +278,6 @@ public abstract class GregtechMetaSafeBlockBase extends GT_MetaTileEntity_Tiered
}
}
- @Override
- public void onPostTick(final IGregTechTileEntity aBaseMetaTileEntity, final long aTimer) {
- /*if (aBaseMetaTileEntity.isAllowedToWork() && aBaseMetaTileEntity.isServerSide() && aBaseMetaTileEntity.isUniversalEnergyStored(getMinimumStoredEU()) && (aBaseMetaTileEntity.hasWorkJustBeenEnabled() || aBaseMetaTileEntity.hasInventoryBeenModified() || aTimer % 200 == 0 || mSuccess > 0)) {
- */
- if (aBaseMetaTileEntity.isServerSide() && (aBaseMetaTileEntity.hasWorkJustBeenEnabled() || aBaseMetaTileEntity.hasInventoryBeenModified() || ((aTimer % 200) == 0) || (this.mSuccess > 0))) {
- this.value_last = this.value_current;
- this.value_current = this.bUnbreakable;
- if (this.value_last != this.value_current){
- Logger.WARNING("VALUE CHANGE - Ticking for a moment.");
- if (this.bUnbreakable == true){
- //Xasda.setmTileEntity((BaseMetaTileEntity) aBaseMetaTileEntity);
- //Utils.LOG_ERROR("Safe is Indestructible.");
- this.getBaseMetaTileEntity().getBlock(this.getBaseMetaTileEntity().getXCoord(), this.getBaseMetaTileEntity().getYCoord(), this.getBaseMetaTileEntity().getZCoord()).setResistance(Float.MAX_VALUE);
- this.getBaseMetaTileEntity().getBlock(this.getBaseMetaTileEntity().getXCoord(), this.getBaseMetaTileEntity().getYCoord(), this.getBaseMetaTileEntity().getZCoord()).setBlockUnbreakable();
- }
- else {
- //Xasda.setmTileEntity((BaseMetaTileEntity) aBaseMetaTileEntity);
- //Utils.LOG_ERROR("Safe is not Indestructible.");
- this.getBaseMetaTileEntity().getBlock(this.getBaseMetaTileEntity().getXCoord(), this.getBaseMetaTileEntity().getYCoord(), this.getBaseMetaTileEntity().getZCoord()).setResistance(1F);
- this.getBaseMetaTileEntity().getBlock(this.getBaseMetaTileEntity().getXCoord(), this.getBaseMetaTileEntity().getYCoord(), this.getBaseMetaTileEntity().getZCoord()).setHardness(2);
-
- }
- }
- else {
-
- }
-
- }
- }
@Override
public boolean allowPullStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex, final byte aSide, final ItemStack aStack) {