Fixed a node replacement bug in doors
rewrote and streamlined the doors code in the process
also fixed missing detection of infinite stacks (e.g. default creative mode)