aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity
diff options
context:
space:
mode:
authorbot <krampus.sack.never@gmail.com>2020-03-31 02:32:34 +0000
committerAlkalus <draknyte1@hotmail.com>2020-03-31 02:32:34 +0000
commit47816dec7729bde0bf247ff7db8ebf6b25b92048 (patch)
tree4ea31303e333a7ee145ab5e2903f9d6be519edaa /src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity
parent4a2d63b01a8c5a85cc4aa5b78fa87a1d4c186765 (diff)
parent67ca10777454cadcb4ba44a1e2a4345b6a4adb93 (diff)
downloadGT5-Unofficial-47816dec7729bde0bf247ff7db8ebf6b25b92048.tar.gz
GT5-Unofficial-47816dec7729bde0bf247ff7db8ebf6b25b92048.tar.bz2
GT5-Unofficial-47816dec7729bde0bf247ff7db8ebf6b25b92048.zip
Merged in develop (pull request #3)
Develop
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) {