14cc07bfd3
The on_rotate function now checks the new param2 value to determine if a rotation is valid, rather than checking the rotation mode. This is so screwdriver-like items with different rotation modes will not be able to rotate the bed into invalid orientations.