diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2019-08-22 20:01:40 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2019-08-22 20:01:40 -0400 |
| commit | 20bef6e26d948698398bd16aeab8c9e6b89110e4 (patch) | |
| tree | 8a21e17f78b330435f4ce2d4355d72b773230aa7 /src/main/java/darkknight/jewelrycraft/potions | |
| parent | 26fb28edd1ebb6390f8803fed3876d222cb8fdba (diff) | |
Format/import cleanup
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/potions')
| -rwxr-xr-x | src/main/java/darkknight/jewelrycraft/potions/PotionList.java | 4 | ||||
| -rwxr-xr-x | src/main/java/darkknight/jewelrycraft/potions/PotionStun.java | 8 |
2 files changed, 4 insertions, 8 deletions
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);
}
}
|
