From 23a910a0509794e2127f80c6452a012c9472ea1d Mon Sep 17 00:00:00 2001 From: Robert S Date: Sun, 4 May 2014 06:46:05 -0400 Subject: [PATCH] Laser now shows breaking animation --- .../electrical/laser/gun/ItemMiningLaser.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/electrical/src/main/scala/resonantinduction/electrical/laser/gun/ItemMiningLaser.java b/electrical/src/main/scala/resonantinduction/electrical/laser/gun/ItemMiningLaser.java index 037c6660..6aca5d2e 100644 --- a/electrical/src/main/scala/resonantinduction/electrical/laser/gun/ItemMiningLaser.java +++ b/electrical/src/main/scala/resonantinduction/electrical/laser/gun/ItemMiningLaser.java @@ -87,7 +87,7 @@ public class ItemMiningLaser extends ItemElectric if (!flag) { - ((EntityLivingBase) entity).addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 5, 0)); + //((EntityLivingBase) entity).addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 5, 0)); } else { @@ -151,12 +151,14 @@ public class ItemMiningLaser extends ItemElectric LaserEvent.onBlockMinedByLaser(player.worldObj, player, new Vector3(hit)); mined = true; + player.worldObj.destroyBlockInWorldPartially(0, hit.blockX, hit.blockY, hit.blockZ, -1); miningMap.remove(player); } else { //TODO get the actual hit side from the angle of the ray trace LaserEvent.onLaserHitBlock(player.worldObj, player, new Vector3(hit), ForgeDirection.UP); + player.worldObj.destroyBlockInWorldPartially(0, hit.blockX, hit.blockY, hit.blockZ, time); } } }