Screwdriver: simplify logic, allow wallmounted rotation.
authorAuke Kok <sofar@foo-projects.org>
Mon, 13 Mar 2017 19:35:45 +0000 (12:35 -0700)
committerparamat <mat.gregory@virginmedia.com>
Mon, 20 Mar 2017 00:12:16 +0000 (00:12 +0000)
commitecf160d93d678bdaefbbcb5177895e0733069eff
tree888c7d6cfcf89889c0c1e8f9813a07801d2be6c4
parent6a55e150aff0a6f77ed3104add013c03e810043c
Screwdriver: simplify logic, allow wallmounted rotation.

- Allow rotation of wallmounted nodeboxes (signs) since they are
  now rotating properly.
- Instead of testing `ndef` several times, do it once, correctly.
- Simplify exception logic for nodes that have `on_rotate` set.
- For simplicity, return itemstack, always.
- Remove a useless nil check.
mods/screwdriver/init.lua