Cleaned up code (reverse-merged from commit cfee5dda6dee114a16738d4dd21e66cc6666ed88)
Created tile entity