Particle packets are only sent to players in the particle's world now.

This commit is contained in:
Luis C.M committed 2022-07-02 13:07:23 -05:00
1 parent 9ceec111ba
commit c8a3b7825d
5 files changed
+19 -25

No files matched your search

@@ -85,7 +85,7 @@ public class NoppesUtil {
Client.skinOverlays.put(player.getUniqueID(), skinOverlays);
}
public static void spawnScriptedParticle(ByteBuf buffer){
public static void spawnScriptedParticle(EntityPlayer player, ByteBuf buffer){
Minecraft minecraft = Minecraft.getMinecraft();
NBTTagCompound compound;
@@ -97,7 +97,7 @@ public class NoppesUtil {
return;
}
World worldObj = DimensionManager.getWorld(compound.getInteger("DimensionID"));
World worldObj = player.worldObj;
if (worldObj == null) {
return;
}