PC-Logix / OpenSecurity

Security addon for OpenComputers
MIT License
46 stars 24 forks source link

[Bug] Alarm crashes game! #144

Closed manaphoenix closed 4 years ago

manaphoenix commented 5 years ago

Describe the bug VanillaFix picked up a crash when inserting an alarm as an upgrade into a robot with a upgrade container.

In which environment did the Bug appear? Singleplayer

To Reproduce Steps I did to produce:

  1. Created a single player world
  2. Made a t3 robot as shown https://gyazo.com/a6129010fc164fe463fba9eaf733b8bd
  3. Installed OpenOS onto the robot (not sure this is related)
  4. Inserted an alarm as an upgrade into the robots upgrade container slot (the robot was powered on)

Expected behavior This area seem self explanatory but, for it to not crash lol.

Screenshots / Code Snippet https://paste.dimdev.org/piyavozoda.mccrash

Minecraft:

Additional context If somehow helps, this was a flat world, set to the redstone ready preset.

ben-mkiv commented 5 years ago

kinda fixed locally, but the alarm isn't ideal as upgrade anyways as minecraft doesn't support moving sound sources, so it will always come from the location where the robot/tablet started playing the sound

i'll leave the bug opened until a release is on curseForge

ben-mkiv commented 4 years ago

official build with the fix is now on curse

https://www.curseforge.com/minecraft/mc-mods/opensecurity/files/2939430