Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PEEntityCreature extends EntityCreature implements INpc{
- public PEEntityCreature(World worldIn) {
- super(worldIn);
- }
- /*
- *I THINK THIS ONE IS THE PROBLEM!
- *I GUESS THAT THE SOUNDMANAGER TRIES TO LOAD THE NORMAL SOUNDS ALSO ON THIS WAY BUT CAN'T FIND THEM!
- *BUT I'M NOT SURE :(
- *ANYWAY, EVEN IF THIS IS RIGHT, I REALLY DON'T KNOW HOW TO SOLVE IT!!!!!
- */
- @Override
- public void playSound(SoundEvent sound, float volume, float pitch) {
- if (!this.isSilent())
- PacketHandler.sendToAllAround(new C00PacketSendSound(new ImplSound(sound,this.getSoundCategory(),volume,pitch,this.posX,this.posY,this.posZ)), this.dimension, this.posX, this.posY, this.posZ, volume > 1.0F ? (double)(16.0F * volume) : 16.0D);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment