mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 18:57:32 +00:00
Fix Spawn Particle
This commit is contained in:
1 parent
adef51cd53
commit
4a064add75
1 file changed
+12
@@ -146,8 +146,20 @@ public class ScriptParticle implements IParticle {
|
||||
}
|
||||
|
||||
public void spawn(IWorld world, double x, double y, double z){
|
||||
double prevX = this.x;
|
||||
double prevY = this.y;
|
||||
double prevZ = this.z;
|
||||
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
|
||||
NBTTagCompound compound = this.writeToNBT();
|
||||
NoppesUtilServer.spawnScriptedParticle(compound, world.getDimensionID());
|
||||
|
||||
this.x = prevX;
|
||||
this.y = prevY;
|
||||
this.z = prevZ;
|
||||
}
|
||||
|
||||
public void spawnOnEntity(IEntity entity) {
|
||||
|
||||
Reference in new issue
Block a user