1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-12 02:10:30 +00:00

Merge pull request #249 from SquidDev-CC/hotfix/speaker-server

Fixes speakers playing incorrect sounds on the server
This commit is contained in:
Daniel Ratcliffe 2017-05-17 11:11:34 +01:00 committed by GitHub
commit ebf8492198

View File

@ -238,7 +238,7 @@ public class SpeakerPeripheral implements IPeripheral {
@Nullable
@Override
public Object[] execute() throws LuaException {
world.playSound(null, pos, new SoundEvent(resource), SoundCategory.RECORDS, vol, soundPitch);
world.playSound( null, pos, SoundEvent.REGISTRY.getObject( resource ), SoundCategory.RECORDS, vol, soundPitch );
return null;
}