MightyPirates / OpenComputers

Home of the OpenComputers mod for Minecraft.
https://oc.cil.li
Other
1.59k stars 432 forks source link

eternal beep sound (1.12.2) #3671

Open igorkll opened 1 year ago

igorkll commented 1 year ago

if you call computer.beep(string.rep("-", 1024)), then everyone who was standing next to the computer will continue to hear this sound even if they move away from the computer(the sound will be heard even if you break the computer)

floridaman commented 8 months ago

I am not a developer for this project but there appears to be no limit on the length of a beep code and it appears to be sent all at once which matches up with the behavior you observed of still hearing the sound even after breaking the block. One solution would be to add a config option with a default reasonable maximum value for the length of beep codes.