From 20bef6e26d948698398bd16aeab8c9e6b89110e4 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Thu, 22 Aug 2019 20:01:40 -0400 Subject: Format/import cleanup --- src/main/java/darkknight/jewelrycraft/potions/PotionList.java | 4 +--- src/main/java/darkknight/jewelrycraft/potions/PotionStun.java | 8 +++----- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'src/main/java/darkknight/jewelrycraft/potions') diff --git a/src/main/java/darkknight/jewelrycraft/potions/PotionList.java b/src/main/java/darkknight/jewelrycraft/potions/PotionList.java index 53c768e..f6d5739 100755 --- a/src/main/java/darkknight/jewelrycraft/potions/PotionList.java +++ b/src/main/java/darkknight/jewelrycraft/potions/PotionList.java @@ -23,9 +23,7 @@ public class PotionList { if (Potion.potionTypes.length > 231) { stun = new PotionStun(230, true, 0x000000); } else { - stun = new PotionStun( - Potion.potionTypes.length - 2, - true, 0x000000); + stun = new PotionStun(Potion.potionTypes.length - 2, true, 0x000000); } } diff --git a/src/main/java/darkknight/jewelrycraft/potions/PotionStun.java b/src/main/java/darkknight/jewelrycraft/potions/PotionStun.java index a0fca81..7bc304f 100755 --- a/src/main/java/darkknight/jewelrycraft/potions/PotionStun.java +++ b/src/main/java/darkknight/jewelrycraft/potions/PotionStun.java @@ -35,12 +35,10 @@ public class PotionStun extends PotionBase { entity.rotationPitch = entity.prevRotationPitch; entity.rotationYaw = entity.prevRotationYaw; - entity.worldObj.spawnParticle("spell", entity.posX, - entity.posY + entity.getEyeHeight(), - entity.posZ, 0.0D, 0.3D, 0.0D); + entity.worldObj.spawnParticle("spell", entity.posX, entity.posY + entity.getEyeHeight(), entity.posZ, 0.0D, + 0.3D, 0.0D); - if (entity.getActivePotionEffect(PotionList.stun) - .getDuration() == 0) { + if (entity.getActivePotionEffect(PotionList.stun).getDuration() == 0) { entity.removePotionEffect(PotionList.stun.id); } } -- cgit v1.2.3