@@ -357,22 +357,21 @@ public void onRenderWorldLast(RenderWorldLastEvent event) {
357357 if (FarmHelperConfig .streamerMode ) return ;
358358
359359 if (FarmHelperConfig .highlightRewarp && FarmHelperConfig .rewarpList != null && GameStateHandler .getInstance ().inGarden ()) {
360- Color chroma = Color .getHSBColor ((float ) ((System .currentTimeMillis () / 10 ) % 2000 ) / 2000 , 1 , 1 );
361-
362360 for (Rewarp rewarp : FarmHelperConfig .rewarpList ) {
363361 double distance = mc .thePlayer .getDistance (rewarp .x , rewarp .y , rewarp .z );
364- Color chromaLowerAlpha = new Color ( chroma . getRed (), chroma . getGreen (), chroma . getBlue (), Math . max ( 0 , 120 - ( int ) ( distance * 2 )) );
362+ Color rewarpColor = FarmHelperConfig . rewarpColor . toJavaColor ( );
365363 if (distance < 50 ) {
366- RenderUtils .drawBlockBox (new BlockPos (rewarp .x , rewarp .y , rewarp .z ), chromaLowerAlpha );
364+ RenderUtils .drawBlockBox (new BlockPos (rewarp .x , rewarp .y , rewarp .z ), rewarpColor );
367365 }
368366 }
369367 }
370368
371369 if (FarmHelperConfig .drawSpawnLocation && PlayerUtils .isSpawnLocationSet () && GameStateHandler .getInstance ().inGarden ()) {
372370 BlockPos spawnLocation = new BlockPos (PlayerUtils .getSpawnLocation ());
373371 double distance = mc .thePlayer .getDistance (spawnLocation .getX (), spawnLocation .getY (), spawnLocation .getZ ());
372+ Color spawnColor = FarmHelperConfig .spawnColor .toJavaColor ();
374373 if (distance < 50 ) {
375- RenderUtils .drawBlockBox (spawnLocation , new Color ( Color . orange . getRed (), Color . orange . getGreen (), Color . orange . getBlue (), Math . max ( 0 , 80 - ( int ) ( distance * 1.6 ))) );
374+ RenderUtils .drawBlockBox (spawnLocation , spawnColor );
376375 }
377376 }
378377
0 commit comments