Skip to content

Commit

Permalink
Allow particles to be seen in a larger radius
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed Sep 29, 2015
1 parent 74bc8e3 commit 1ba4a52
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -264,7 +264,7 @@ else if (particleEffect != null) {
for (dPlayer player : targets)
if (player.isValid() && player.isOnline()) players.add(player.getPlayerEntity());
}
PacketPlayOutWorldParticles o = new PacketPlayOutWorldParticles(particleEffect.effect, false, (float) location.getX(),
PacketPlayOutWorldParticles o = new PacketPlayOutWorldParticles(particleEffect.effect, true, (float) location.getX(),
(float) location.getY(), (float) location.getZ(), osX, osY, osZ, data.asFloat(), qty.asInt());
for (Player player : players) {
((CraftPlayer) player).getHandle().playerConnection.sendPacket(o);
Expand All @@ -289,7 +289,7 @@ else if (particleEffect != null) {
for (dPlayer player : targets)
if (player.isValid() && player.isOnline()) players.add(player.getPlayerEntity());
}
PacketPlayOutWorldParticles o = new PacketPlayOutWorldParticles(EnumParticle.ITEM_CRACK, false, (float) location.getX(),
PacketPlayOutWorldParticles o = new PacketPlayOutWorldParticles(EnumParticle.ITEM_CRACK, true, (float) location.getX(),
(float) location.getY(), (float) location.getZ(), osX, osY, osZ, data.asFloat(), qty.asInt(),
iconcrack.asInt(), iconcrack.asInt()); // TODO: ???
for (Player player : players) {
Expand Down

0 comments on commit 1ba4a52

Please sign in to comment.