Skip to content

Commit

Permalink
Use Float.MIN_NORMAL instead of 1/255 for the REDSTONE effect
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkBlade12 committed Jul 21, 2015
1 parent 752575e commit a96b8f5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* <li>@ShadyPotato (1.8 names, ids and packet parameters)
* <li>@RingOfStorms (particle behavior)
* <li>@Cybermaxke (particle behavior)
* <li>@JamieSinn (hosting a jenkins server and documentation for particleeffect)
* <li>@JamieSinn (hosting a jenkins server and documentation for particleeffect)
* </ul>
* <p>
* <i>It would be nice if you provide credit to me if you use this class in a published project</i>
Expand Down Expand Up @@ -1387,7 +1387,7 @@ public ParticlePacket(ParticleEffect effect, Vector direction, float speed, bool
public ParticlePacket(ParticleEffect effect, ParticleColor color, boolean longDistance) {
this(effect, color.getValueX(), color.getValueY(), color.getValueZ(), 1, 0, longDistance, null);
if (effect == ParticleEffect.REDSTONE && color instanceof OrdinaryColor && ((OrdinaryColor) color).getRed() == 0) {
offsetX = (float) 1 / 255F;
offsetX = Float.MIN_NORMAL;
}
}

Expand Down

0 comments on commit a96b8f5

Please sign in to comment.