Fixed moving between adjacent tables

Fixes https://github.com/tgstation/-tg-station/issues/4240

Credit for fix to Zuhayr at baystation!