Fixed possible class cast exception getting tile entity