Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Alarm starts doubling once you fly far away and come back to the alarm #174

Open
seras42 opened this issue Jul 13, 2022 · 1 comment

Comments

@seras42
Copy link

seras42 commented Jul 13, 2022

Describe the bug
When alarm block is activated, and the player moves far away from the block(probably related to the chunks getting unloaded) and coming back to it, double alarm sounds starts playing, once you shut down the first via the computer, the second keeps playing, its impossible to shut it down and can only be done so by leaving the game and loading the save again.

Tried to decrease the alarm range, still the same thing happens once you go far way from the block and come back.

In which environment did the Bug appear?
Single player, have not tested on a server but the alarm function is mainly needed for server play

To Reproduce

What i did, computer tier 3, disk, the whole modules so the computer in game works. Then go to lua,

alarm = require("component").os_alarm
alarm.setRange(15)
alarm.activate()

And then just fly very far away ( i guess until chunks unload) and fly back to it. Now you should hear double alarm start playing. You shut down the first one via computer using alarm.deactivate(), while the second still keeps playing.
Its also the same problem if i decrease the range.

Expected behavior
I expect for the alarm to shut down once i use the alarm.deactivate() function and i expected no double alarms to start playing once i come back.

Minecraft:

  • Mod Version (e.g. OpenSecurity-MC1.12.2-1.0-83)
  • Minecraft Version (e.g. Minecraft 1.12)
  • Forge Version (e.g. Forge 14.23.5.2859)
@seras42
Copy link
Author

seras42 commented Jul 13, 2022

F3 +A (chunk reload) doesnt work either in stopping the second double alarm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant