aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/metatileentity/implementations
diff options
context:
space:
mode:
authorobserveroftime02 <observeroftime@shizuki.ca>2019-10-29 23:57:28 -0700
committerobserveroftime02 <observeroftime@shizuki.ca>2019-10-29 23:57:28 -0700
commit48f34362e3ddff7e3f548c4862f4e6452703e21f (patch)
tree2b874839e74b122b26e35fdeaaa692ba3e07e7c0 /src/main/java/gregtech/api/metatileentity/implementations
parenta200e8bd2ffea5a93ec5a783ceb5c752d3c32e76 (diff)
downloadGT5-Unofficial-48f34362e3ddff7e3f548c4862f4e6452703e21f.tar.gz
GT5-Unofficial-48f34362e3ddff7e3f548c4862f4e6452703e21f.tar.bz2
GT5-Unofficial-48f34362e3ddff7e3f548c4862f4e6452703e21f.zip
Remove NBT data from turbines, preventing them from being disassembled.
Signed-off-by: observeroftime02 <observeroftime@shizuki.ca>
Diffstat (limited to 'src/main/java/gregtech/api/metatileentity/implementations')
-rw-r--r--src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java
index 31ce202792..88e7911d1e 100644
--- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java
+++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java
@@ -435,7 +435,7 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity {
NBTTagCompound tNBT = mInventory[1].getTagCompound();
if (tNBT != null) {
NBTTagCompound tNBT2 = tNBT.getCompoundTag("GT.CraftingComponents");//tNBT2 dont use out if
- if (!tNBT.getBoolean("mDis")) {
+ /*if (!tNBT.getBoolean("mDis")) {
tNBT2 = new NBTTagCompound();
Materials tMaterial = GT_MetaGenerated_Tool.getPrimaryMaterial(mInventory[1]);
ItemStack tTurbine = GT_OreDictUnificator.get(OrePrefixes.turbineBlade, tMaterial, 1);
@@ -487,7 +487,7 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity {
tNBT.setBoolean("mDis", true);
mInventory[1].setTagCompound(tNBT);
- }
+ }*/
}
((GT_MetaGenerated_Tool) mInventory[1].getItem()).doDamage(mInventory[1], (long)getDamageToComponent(mInventory[1]) * (long) Math.min(mEUt / this.damageFactorLow, Math.pow(mEUt, this.damageFactorHigh)));
if (mInventory[1].stackSize == 0) mInventory[1] = null;