mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 14:14:46 +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
@@ -133,23 +133,18 @@ public class ScriptParticle implements IParticle {
|
||||
|
||||
NBTTagCompound compound = this.writeToNBT();
|
||||
compound.setInteger("EntityID", entityID);
|
||||
compound.setInteger("DimensionID", entity.getWorld().getDimensionID());
|
||||
|
||||
NoppesUtilServer.spawnScriptedParticle(compound);
|
||||
NoppesUtilServer.spawnScriptedParticle(compound, entity.getWorld().getDimensionID());
|
||||
}
|
||||
|
||||
public void spawnInWorld(ScriptWorld world){
|
||||
NBTTagCompound compound = this.writeToNBT();
|
||||
compound.setInteger("DimensionID", world.getDimensionID());
|
||||
|
||||
NoppesUtilServer.spawnScriptedParticle(compound);
|
||||
NoppesUtilServer.spawnScriptedParticle(compound, world.getDimensionID());
|
||||
}
|
||||
|
||||
public void spawnInWorld(ScriptWorld world, double x, double y, double z){
|
||||
NBTTagCompound compound = this.writeToNBT();
|
||||
compound.setInteger("DimensionID", world.getDimensionID());
|
||||
|
||||
NoppesUtilServer.spawnScriptedParticle(compound);
|
||||
NoppesUtilServer.spawnScriptedParticle(compound, world.getDimensionID());
|
||||
}
|
||||
|
||||
public void setGlows(boolean glows) { this.glows = glows; }
|
||||
|
||||
Reference in new issue
Block a user