13
0
geforkt von Mirrors/Paper

SPIGOT-326: Fix an overflow issue which caused particles to only show in a 1 block radius

Dieser Commit ist enthalten in:
Thinkofdeath 2015-01-16 23:08:37 +00:00
Ursprung 001a3a2e20
Commit 65c90b951a

Datei anzeigen

@ -142,7 +142,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
- 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