[ci skip] spotlessApply with the new settings

This commit is contained in:
Jason Mitchell committed 2023-01-28 18:04:28 -08:00
1 parent 83698cb73c
commit 84c2239244
561 files changed
+8872 -9300

No files matched your search

@@ -5,7 +5,9 @@ import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumChatFormatting;
import org.lwjgl.opengl.GL11;
import tconstruct.tools.logic.BattlesignLogic;
public class BattlesignTesr extends TileEntitySpecialRenderer {
@@ -42,16 +44,14 @@ public class BattlesignTesr extends TileEntitySpecialRenderer {
String[] strings = te.getText();
if (strings != null && strings.length > 0) {
float lum = calcLuminance(te.getWorldObj()
.getBlock(te.xCoord, te.yCoord, te.zCoord)
.colorMultiplier(te.getWorldObj(), te.xCoord, te.yCoord, te.zCoord));
float lum = calcLuminance(
te.getWorldObj().getBlock(te.xCoord, te.yCoord, te.zCoord)
.colorMultiplier(te.getWorldObj(), te.xCoord, te.yCoord, te.zCoord));
for (int i = 0; i < strings.length; i++) {
fr.drawString(
(lum >= 35F
? EnumChatFormatting.BLACK
: lum >= 31F ? EnumChatFormatting.GRAY : EnumChatFormatting.WHITE)
+ strings[i],
(lum >= 35F ? EnumChatFormatting.BLACK
: lum >= 31F ? EnumChatFormatting.GRAY : EnumChatFormatting.WHITE) + strings[i],
-fr.getStringWidth(strings[i]) / 2 + 40,
10 * i,
0);