as a side effect, this also fixes the bug where you couldn't
stack beds to form "bunk" beds.
Place a bed, right-click it with dye to color it.
Place two beds side by side and they'll form a king-size bed, which
you can right right-click with dye to color.
Place a regular bed, then right-click it while wielding another
regular bed (i.e. as if you were trying to place it) and, if there
is room above the first bed, the second will be placed on top and
the bedposts on the bottom one will extend to reach it. Color
either of the two by right-clicking with dye.
Shift-right-click forces placement of a regular bed without trying
to stack it into bunks.
Right-click while NOT wielding a bed or dye will attempt to let you
sleep (via default beds code).
includes just enough code to try to auto-route them as they're placed.
the "root" node is now the horizontal one - if you have diagonals and
they don't place right, they should after you dig them and place again.
when placing, code will try to determine if the bannister should be
left- or right-sided. Defaults to left-sided; hold shift while placing
to force right-sided.
create it by placing two twins of the same color side by side, left first
also moved the bed extension functions into handlers/expansion.lua,
renamed them, and made a few other minor tweaks to that file accordingly.