The game engine constantly checks if player.hitbox touches obstacle.hitbox . The mod menu intercepts this function and changes the return value from true (Crash) to false (Continue).