mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 11:29:05 +00:00
Particle packets are only sent to players in the particle's world now.
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user