Skip to content
Permalink
Browse files

Re-enable tesla coil entity damage.

  • Loading branch information...
Ri5ux Ri5ux
Ri5ux authored and Ri5ux committed Jul 17, 2019
1 parent 02b8a51 commit 1c737a7f0af68eb53b3b43868b1814a971a8823e
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/main/java/org/avp/tile/TileEntityTeslaCoil.java
@@ -231,13 +231,13 @@ public void tryElectricArc()

if (target != null)
{
// Pos p = new Pos(target.getPosition()).add(target.width / 2, 0, target.width / 2);
// distE = target.getDistance(origin.x, origin.y, origin.z);
// t = p;
// m = 8F;
// dist = distE;
// target.attackEntityFrom(DamageSources.electricity, damageMult);
// target.setFire(3);
Pos p = new Pos(target.getPosition()).add(target.width / 2, 0, target.width / 2);
distE = target.getDistance(origin.x, origin.y, origin.z);
t = p;
m = 8F;
dist = distE;
target.attackEntityFrom(DamageSources.electricity, damageMult);
target.setFire(3);
}

if (FMLCommonHandler.instance().getSide() == Side.CLIENT)

0 comments on commit 1c737a7

Please sign in to comment.
You can’t perform that action at this time.