Created
June 5, 2015 05:10
-
-
Save codahq/bf21640107959ad73bf4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//tell the client to spawn particles | |
Iterator iterator = this.worldObj.playerEntities.iterator(); | |
while (iterator.hasNext()) | |
{ | |
EntityPlayer entityplayer = (EntityPlayer)iterator.next(); | |
if (entityplayer.getDistanceSq(mop.entityHit.posX, mop.entityHit.posY, mop.entityHit.posZ) < 4096.0D) | |
{ | |
MessageSpawnParticles message = new MessageSpawnParticles(ParticleType.HEALSINGLE, entityHit.posX, entityHit.posY, entityHit.posZ, 1); | |
Pearlmod.network.sendTo(message, (EntityPlayerMP)entityplayer); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment