Bug: Using a Rotation Speed Controller as CC Peripheral allows for setting any speed
cfpwastaken opened this issue ยท 8 comments
Describe the Bug
You can set the speed of a rotation speed controller to any speed, even outside of the config's limits and have it work.
Reproduction Steps
- Power a rotation speed controller with any power source
- Place a ComputerCraft Computer next to it
- Run this lua code:
rsc = peripheral.wrap("left") -- replace with the side of the peripheral
rsc.setTargetSpeed(29999)
- Go wild
Expected Result
It should throw a lua error or just automatically cap it to the max of the config.
Screenshots and Videos
Here i connected the speed controller with a wired modem and networking cable but it works the same way.
Crash Report or Log
No response
Operating System
Arch Linux
Mod Version
0.5.1f
Minecraft Version
1.20.1
Other Mods
CC: Tweaked
Additional Context
No response
It does happen on version 0.5.1-f-build.1417+mc1.20.1 (the latest one on modrinth at the time of writing this).
Compiling the latest commit fb31370 does not have the bug.
I see. I don't seem to have the newest, newest version installed. Tried fixing this myself but it seems patched.
Looking on modrinth the version i was using IS the latest. Perhaps it has been fixed recently but not published yet?