Buggy code:
public class RootWidget extends ConsoleHost { public static final Resource defcurs = Resource . local ( ) . loadwait ( "gfx//hud//curs//arw" ) ; Profile guprof ; Profile grprof ; Profile ggprof ; boolean afk = false ; public RootWidget ( UI ui , Coord sz ) { } public boolean globtype ( char key , KeyEvent ev ) { if ( ! ( super . globtype ( key , ev ) ) ) { if ( key == '`' ) { GameUI gi = findchild ( GameUI . class ) ; if ( Config . profile ) { add ( new Profwnd ( guprof , "UI<seq2seq4repair_space>profile" ) , new Coord ( 100 , 100 ) ) ; add ( new Profwnd ( grprof , "GL<seq2seq4repair_space>profile" ) , new Coord ( 450 , 100 ) ) ; if ( ( gi != null ) && ( ( gi . map ) != null ) ) add ( new Profwnd ( gi . map . prof , "Map<seq2seq4repair_space>profile" ) , new Coord ( 100 , 250 ) ) ; } if ( Config . profilegpu ) { add ( new Profwnd ( ggprof , "GPU<seq2seq4repair_space>profile" ) , new Coord ( 450 , 250 ) ) ; } } else if ( key == ':' ) { entercmd ( ) ; } else if ( ( ev . isControlDown ( ) ) && ( ( ev . getKeyCode ( ) ) == ( KeyEvent . VK_N ) ) ) { nightVision . toggle ( ) ; if ( nightVision . isEnabled ( ) ) ui . message ( "Night<seq2seq4repair_space>Vision<seq2seq4repair_space>ENABLED" , Color . green ) ; else ui . message ( "Night<seq2seq4repair_space>Vision<seq2seq4repair_space>DISABLED" , Color . red ) ; } else if ( ( ev . isControlDown ( ) ) && ( ( ev . getKeyCode ( ) ) == ( KeyEvent . VK_W ) ) ) { worldToolTips . toggle ( ) ; if ( worldToolTips . isEnabled ( ) ) ui . message ( "World<seq2seq4repair_space>Tooltip<seq2seq4repair_space>ENABLED" , Color . green ) ; else ui . message ( "World<seq2seq4repair_space>Tooltop<seq2seq4repair_space>DISABLED" , Color . red ) ; } else if ( ( ev . isControlDown ( ) ) && ( ( ev . getKeyCode ( ) ) == ( KeyEvent . VK_G ) ) ) { showGrid . toggle ( ) ; if ( showGrid . isEnabled ( ) ) ui . message ( "Grid<seq2seq4repair_space>Overlay<seq2seq4repair_space>ENABLED" , Color . green ) ; else ui . message ( "Grid<seq2seq4repair_space>Overlay<seq2seq4repair_space>DISABLED" , Color . red ) ; } else if ( ( ev . isControlDown ( ) ) && ( ( ev . getKeyCode ( ) ) == ( KeyEvent . VK_F ) ) ) { if ( ( ui . gui ) != null ) { <START_BUG> map . startMouseFollow ( true ) ; <END_BUG> ui . message ( "Mouse<seq2seq4repair_space>follow<seq2seq4repair_space>mode<seq2seq4repair_space>ENABLED<seq2seq4repair_space>-<seq2seq4repair_space>click<seq2seq4repair_space>to<seq2seq4repair_space>disable" , Color . white ) ; } } else if ( ( ev . isControlDown ( ) ) && ( ( ev . getKeyCode ( ) ) == ( KeyEvent . VK_V ) ) ) { if ( ( ui . gui ) != null ) viewfilter . show ( ( ! ( viewfilter . visible ) ) ) ; } else if ( ( ev . isControlDown ( ) ) && ( ( ev . getKeyCode ( ) ) == ( KeyEvent . VK_D ) ) ) { showObjectRadius . toggle ( ) ; if ( showObjectRadius . isEnabled ( ) ) ui . message ( "Object<seq2seq4repair_space>Radius<seq2seq4repair_space>ENABLED" , Color . green ) ; else ui . message ( "Object<seq2seq4repair_space>Radius<seq2seq4repair_space>DISABLED" , Color . red ) ; } else if ( ( ev . isControlDown ( ) ) && ( ( ev . getKeyCode ( ) ) == ( KeyEvent . VK_Q ) ) ) { if ( ( ui . gui ) != null ) gui . swapHand ( ) ; } else if ( ( ev . isControlDown ( ) ) && ( ( ev . getKeyCode ( ) ) == ( KeyEvent . VK_X ) ) ) { if ( ( ui . gui ) != null ) gui . act ( "lo" ) ; } else if ( key != 0 ) { wdgmsg ( "gk" , ( ( int ) ( key ) ) ) ; } } return true ; } public void draw ( GOut g ) { } public void error ( String msg ) { } }

Fix:
map . startMouseWalking ( true ) ;