fix vec3 colors

This commit is contained in:
gamma-delta 2022-11-05 19:45:15 +01:00
parent fba6838b64
commit 13183c7ef1
2 changed files with 3 additions and 5 deletions

View file

@ -6,7 +6,6 @@ import net.minecraft.nbt.CompoundTag;
import net.minecraft.nbt.Tag; import net.minecraft.nbt.Tag;
import net.minecraft.network.chat.Component; import net.minecraft.network.chat.Component;
import net.minecraft.server.level.ServerLevel; import net.minecraft.server.level.ServerLevel;
import net.minecraft.util.FastColor;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;
@ -58,8 +57,7 @@ public class GarbageIota extends Iota {
@Override @Override
public int color() { public int color() {
var lum = RANDOM.nextInt(0x40, 0x60); return 0xff_505050;
return FastColor.ARGB32.color(0xff, lum, lum, lum);
} }
}; };
} }

View file

@ -57,7 +57,7 @@ public class Vec3Iota extends Iota {
@Override @Override
public int color() { public int color() {
return 0xff_ff55ff; return 0xff_ff5555;
} }
}; };
@ -69,7 +69,7 @@ public class Vec3Iota extends Iota {
public static Component display(double x, double y, double z) { public static Component display(double x, double y, double z) {
return Component.literal(String.format("(%.2f, %.2f, %.2f)", x, y, z)) return Component.literal(String.format("(%.2f, %.2f, %.2f)", x, y, z))
.withStyle(ChatFormatting.LIGHT_PURPLE); .withStyle(ChatFormatting.RED);
} }
public static Component display(Vec3 v) { public static Component display(Vec3 v) {