Fixed portal Z direction loop coding failure

* Fixed portals created in the ZP/ZM direction eating its frame
* Changed return type of a function
Fixed pressure plate oversights

* Fixed stone pressure plates not checking for the correct distance for
players
* Fixed pressure plates in general not link powering the blocks beneath
them