Beds: Make on_rotate function check new param2 instead of rotation mode
author12Me21 <12Me21.MC@gmail.com>
Fri, 8 Feb 2019 01:53:55 +0000 (20:53 -0500)
committerParamat <paramat@users.noreply.github.com>
Fri, 8 Feb 2019 01:53:55 +0000 (01:53 +0000)
commit14cc07bfd35d9e82def5cd49e2015ead6a4a8102
treef24f30e38f2831a6777038de4b603a14df6feb1c
parentad6c2cf0352e6e27e09a72334a97044454ea486a
Beds: Make on_rotate function check new param2 instead of rotation mode

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.
mods/beds/api.lua