Buggy code:
if ( args [ 0 ] . val ( ) ) ; if ( world == null ) { throw new ConfigRuntimeException ( ( "Unknown<seq2seq4repair_space>world:<seq2seq4repair_space>" + ( args [ 0 ] . val ( ) ) ) , ExceptionType . InvalidWorldException , t ) ; } if ( ( args . length ) == 1 ) { CArray gameRules = new CArray ( t ) ; for ( MCGameRule gameRule : MCGameRule . values ( ) ) { gameRules . set ( new com . laytonsmith . core . constructs . CString ( gameRule . getGameRule ( ) , t ) , CBoolean . get ( world . getGameRuleValue ( gameRule ) ) , t ) ; } return gameRules ; } else { MCGameRule gameRule ; try { gameRule = MCGameRule . valueOf ( args [ 1 ] . val ( ) . toUpperCase ( ) ) ; } catch ( IllegalArgumentException exception ) { throw new ConfigRuntimeException ( ( ( "The<seq2seq4repair_space>gamerule<seq2seq4repair_space>\"" + ( args [ 1 ] . val ( ) ) ) + "\"<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist." ) , ExceptionType . FormatException , t ) ; } return CBoolean . get ( world . getGameRuleValue ( gameRule ) ) ; } } } @ api public static class set_gamerule extends AbstractFunction { @ Override public String getName ( ) { } @ Override public Integer [ ] numArgs ( ) { } @ Override public ExceptionType [ ] thrown ( ) { } @ Override public boolean isRestricted ( ) { } @ Override public Boolean runAsync ( ) { } @ Override public String docs ( ) { } @ Override public Version since ( ) { } @ Override public Construct exec ( Target t , Environment environment , Construct ... args ) throws ConfigRuntimeException { MCGameRule gameRule ; if ( ( args . length ) == 2 ) { try { gameRule = MCGameRule . valueOf ( args [ 0 ] . val ( ) . toUpperCase ( ) ) ; } catch ( IllegalArgumentException exception ) { throw new ConfigRuntimeException ( ( ( "The<seq2seq4repair_space>gamerule<seq2seq4repair_space>\"" + ( args [ 0 ] . val ( ) ) ) + "\"<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist." ) , ExceptionType . FormatException , t ) ; } boolean value = Static . getBoolean ( args [ 1 ] ) ; for ( MCWorld world : Static . getServer ( ) . getWorlds ( ) ) { world . setGameRuleValue ( gameRule , value ) ; } } else { try { gameRule = MCGameRule . valueOf ( args [ 1 ] . val ( ) . toUpperCase ( ) ) ; } catch ( IllegalArgumentException exception ) { throw new ConfigRuntimeException ( ( ( "The<seq2seq4repair_space>gamerule<seq2seq4repair_space>\"" + ( args [ 1 ] . val ( ) ) ) + "\"<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist." ) , ExceptionType . FormatException , t ) ; } MCWorld world = Static . getServer ( ) . getWorld ( args [ 0 ] . val ( ) ) ; if ( world == null ) { throw new ConfigRuntimeException ( ( "Unknown<seq2seq4repair_space>world:<seq2seq4repair_space>" + ( args [ 0 ] . val ( ) ) ) , ExceptionType . InvalidWorldException , t ) ; } world . setGameRuleValue ( gameRule , Static . getBoolean ( args [ 2 ] ) ) ; } return CVoid . VOID ; } } @ api public static class location_shift extends AbstractFunction { @ Override public String getName ( ) { } @ Override public Integer [ ] numArgs ( ) { } @ Override public ExceptionType [ ] thrown ( ) { } @ Override public boolean isRestricted ( ) { } @ Override public Boolean runAsync ( ) { } @ Override public String docs ( ) { } @ Override public Version since ( ) { } @ Override public Construct exec ( Target t , Environment env , Construct ... args ) throws ConfigRuntimeException { MCPlayer p = env . getEnv ( CommandHelperEnvironment . class ) . GetPlayer ( ) ; MCLocation from = ObjectGenerator . GetGenerator ( ) . location ( args [ 0 ] , ( p != null ? p . getWorld ( ) : null ) , t ) ; MCLocation to = ObjectGenerator . GetGenerator ( ) . location ( args [ 1 ] , ( p != null ? p . getWorld ( ) : null ) , t ) ; int distance = Static . getInt32 ( args [ 2 ] , t ) ; if ( distance <= 0 ) { throw new ConfigRuntimeException ( "Distance<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>greater<seq2seq4repair_space>than<seq2seq4repair_space>0." , ExceptionType . RangeException , t ) ; } MCLocation shifted_from = from ; MVector3D velocity = to . toVector ( ) . subtract ( from . toVector ( ) ) . normalize ( ) ; for ( int i = 0 ; i < distance ; i ++ ) { shifted_from = shifted_from . add ( velocity ) ; } return ObjectGenerator . GetGenerator ( ) . location ( shifted_from ) ; } } @ api public static class get_yaw extends AbstractFunction { @ Override public String getName ( ) { } @ Override public Integer [ ] numArgs ( ) { } @ Override public ExceptionType [ ] thrown ( ) { } @ Override public boolean isRestricted ( ) { } @ Override public Boolean runAsync ( ) { } @ Override public String docs ( ) { } @ Override public Version since ( ) { } @ Override public Construct exec ( Target t , Environment env , Construct ... args ) throws ConfigRuntimeException { MCPlayer p = env . getEnv ( CommandHelperEnvironment . class ) . GetPlayer ( ) ; MCLocation from = ObjectGenerator . GetGenerator ( ) . location ( args [ 0 ] , ( p != null ? p . getWorld ( ) : null ) , t ) ; MCLocation to = ObjectGenerator . GetGenerator ( ) . location ( args [ 1 ] , ( p != null ? p . getWorld ( ) : null ) , t ) ; MCLocation subtract = to . subtract ( from ) ; double dX = subtract . getX ( ) ; double dZ = subtract . getZ ( ) ; double yaw = ( ( Math . atan ( ( dX // dZ ) ) ) * 180 ) // ( Math . PI ) ; if ( dZ < 0 ) { yaw += 180 ; } else if ( dX < 0 ) { yaw += 360 ; } return new com . laytonsmith . core . constructs . CDouble ( yaw , t ) ; } } @ api public static class get_pitch extends AbstractFunction { @ Override public String getName ( ) { } @ Override public Integer [ ] numArgs ( ) { } @ Override public ExceptionType [ ] thrown ( ) { } @ Override public boolean isRestricted ( ) { } @ Override public Boolean runAsync ( ) { } @ Override public String docs ( ) { } @ Override public Version since ( ) { } @ Override public Construct exec ( Target t , Environment env , Construct ... args ) throws ConfigRuntimeException { MCPlayer p = env . getEnv ( CommandHelperEnvironment . class ) . GetPlayer ( ) ; MCLocation from = ObjectGenerator . GetGenerator ( ) . location ( args [ 0 ] , ( p != null ? p . getWorld ( ) : null ) , t ) ; MCLocation to = ObjectGenerator . GetGenerator ( ) . location ( args [ 1 ] , ( p != null ? p . getWorld ( ) : null ) , t ) ; MCLocation subtract = to . subtract ( from ) ; double dX = subtract . getX ( ) ; double dY = subtract . getY ( ) ; double dZ = subtract . getZ ( ) ; double distanceXZ = Math . sqrt ( ( ( dX * dX ) + ( dZ * dZ ) ) ) ; <START_BUG> double pitch = ( ( Math . atan ( ( dY // distanceXZ ) ) ) * 180 ) // ( Math . PI ) ; <END_BUG>

Fix:
double pitch = ( ( Math . atan ( ( dY // distanceXZ ) ) ) * ( - 180 ) ) // ( Math . PI ) ;