From d41f0754f0cd6121067f64c6c95f86f6a6c9b092 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Fri, 16 Jan 2015 23:08:37 +0000 Subject: [PATCH] SPIGOT-326: Fix an overflow issue which caused particles to only show in a 1 block radius --- CraftBukkit-Patches/0061-Particle-API.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CraftBukkit-Patches/0061-Particle-API.patch b/CraftBukkit-Patches/0061-Particle-API.patch index 88c0d2b5e8..bb621f8766 100644 --- a/CraftBukkit-Patches/0061-Particle-API.patch +++ b/CraftBukkit-Patches/0061-Particle-API.patch @@ -1,4 +1,4 @@ -From e431a0f2dcd20553f425270ce3600e5632bbbc89 Mon Sep 17 00:00:00 2001 +From c9409fc8cb99716ccaeb59189f7dfc8eb9b0d951 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Fri, 20 Dec 2013 21:36:06 +0000 Subject: [PATCH] Particle API @@ -132,7 +132,7 @@ index 8105872..204acdb 100644 public Spigot spigot() diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -index 2841e94..ce16883 100644 +index 2841e94..9f3e610 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -322,9 +322,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { @@ -142,7 +142,7 @@ index 2841e94..ce16883 100644 - int packetData = effect.getId(); - PacketPlayOutWorldEvent packet = new PacketPlayOutWorldEvent(packetData, new BlockPosition(loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()), data, false); - getHandle().playerConnection.sendPacket(packet); -+ spigot().playEffect(loc, effect, data, 0, 0, 0, 0, 1, 1, Integer.MAX_VALUE); ++ spigot().playEffect(loc, effect, data, 0, 0, 0, 0, 1, 1, 64); // Spigot } @Override