diff --git a/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerPeripheral.java b/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerPeripheral.java index e3e98fbe4..6ffc4c1b3 100644 --- a/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerPeripheral.java +++ b/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerPeripheral.java @@ -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; }