From a9d26fbc3c33699c0ec535a5a1cceee485db5cb1 Mon Sep 17 00:00:00 2001 From: tgame14 Date: Sat, 8 Mar 2014 20:32:51 +0200 Subject: [PATCH] plan out mechanical piston ore breaking --- .../process/crusher/TileMechanicalPiston.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/mechanical/src/main/java/resonantinduction/mechanical/process/crusher/TileMechanicalPiston.java b/mechanical/src/main/java/resonantinduction/mechanical/process/crusher/TileMechanicalPiston.java index b6f2dd622..ba4b53c26 100644 --- a/mechanical/src/main/java/resonantinduction/mechanical/process/crusher/TileMechanicalPiston.java +++ b/mechanical/src/main/java/resonantinduction/mechanical/process/crusher/TileMechanicalPiston.java @@ -2,6 +2,7 @@ package resonantinduction.mechanical.process.crusher; import java.lang.reflect.Method; +import codechicken.multipart.MultipartHelper; import net.minecraft.block.Block; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; @@ -57,7 +58,7 @@ public class TileMechanicalPiston extends TileMechanical { TileEntity tileEntity = from.getTileEntity(worldObj); - if (to.getTileEntity(worldObj) == this) + if (to.getTileEntity(getWorldObj()).equals(this)) { return false; } @@ -174,4 +175,18 @@ public class TileMechanicalPiston extends TileMechanical } } } + + public void hitOreBlock(Block oreBlock, Vector3 blockPos) + { + if (worldObj.isRemote) + { + // Spawn hit particles logic only, all other information is done Server Side + return; + } + else + { + + } + + } }