code cleanup

This commit is contained in:
Sen 2025-07-23 14:23:06 +02:00
parent 76e018b4ed
commit 9688d1d802
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
102 changed files with 290 additions and 356 deletions

View file

@ -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)

View file

@ -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));
}