code cleanup
This commit is contained in:
parent
76e018b4ed
commit
9688d1d802
102 changed files with 290 additions and 356 deletions
|
@ -1206,7 +1206,7 @@ public class Player extends User implements Executor, IPlayer
|
|||
State iblockstate = this.entity.worldObj.getState(pos);
|
||||
TileEntity tileentity = this.entity.worldObj.getTileEntity(pos);
|
||||
|
||||
this.entity.worldObj.playAuxSFX(this.entity, 2001, pos, BlockRegistry.getId(iblockstate));
|
||||
this.entity.worldObj.playEffect(this.entity, 2001, pos, BlockRegistry.getId(iblockstate));
|
||||
boolean flag1 = this.removeBlock(pos);
|
||||
|
||||
// if (this.creative)
|
||||
|
|
|
@ -1673,12 +1673,12 @@ public final class WorldServer extends AWorldServer {
|
|||
return this.seaLevel;
|
||||
}
|
||||
|
||||
public void playSound(SoundEvent sound, double x, double y, double z, float volume)
|
||||
public void sendSound(SoundEvent sound, double x, double y, double z, float volume)
|
||||
{
|
||||
this.sendNear(x, y, z, volume > 1.0F ? (double)(16.0F * volume) : 16.0D, new SPacketSoundEffect(sound, x, y, z, volume));
|
||||
}
|
||||
|
||||
public void playAuxSFX(EntityNPC player, int sfxType, BlockPos blockPosIn, int data)
|
||||
public void playEffect(EntityNPC player, int sfxType, BlockPos blockPosIn, int data)
|
||||
{
|
||||
this.sendNearExcept(player, (double)blockPosIn.getX(), (double)blockPosIn.getY(), (double)blockPosIn.getZ(), 64.0D, new SPacketEffect(sfxType, blockPosIn, data));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue