Beds: priv/griefing fixes.
authorAuke Kok <sofar@foo-projects.org>
Sat, 19 Mar 2016 01:55:56 +0000 (18:55 -0700)
committerparamat <mat.gregory@virginmedia.com>
Mon, 21 Mar 2016 06:17:45 +0000 (06:17 +0000)
commitda0cc7f6f62c149363c319a7743a00a505da06d2
tree06d5e1bf7595f62625c7c18ec8410142f8dd0e89
parentb57dd0f9b2ae22ce4198b9e30531cf9323969e41
Beds: priv/griefing fixes.

- disallow placing beds in protected areas
- fix rotation of beds(broken after 41c2b2ae)
- allow using others' beds, but don't change spawn location

Fixes #953. #943 isn't something I think was ever implemented, and
this does a fair job of addressing the main concern (spawning in
others' houses)
mods/beds/api.lua
mods/beds/spawns.lua