Fixed the pointer bug in world plugin. Study the new way to rewrite automatical magnetic connection function