mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 09:12:22 +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;
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ public class PacketHandlerClient extends PacketHandlerServer{
|
||||
CustomNpcs.proxy.openGui(NoppesUtil.getLastNpc(), gui, buffer.readInt(), buffer.readInt(), buffer.readInt());
|
||||
}
|
||||
else if(type == EnumPacketClient.SCRIPTED_PARTICLE){
|
||||
NoppesUtil.spawnScriptedParticle(buffer);
|
||||
NoppesUtil.spawnScriptedParticle(player, buffer);
|
||||
}
|
||||
else if(type == EnumPacketClient.PARTICLE){
|
||||
NoppesUtil.spawnParticle(buffer);
|
||||
|
||||
Reference in new issue
Block a user