From 2b006024463d0b60e9237723f8c355f93cdc2d7c Mon Sep 17 00:00:00 2001 From: zelophed Date: Fri, 2 Apr 2021 22:14:40 +0200 Subject: [PATCH] append, not add --- .../content/contraptions/goggles/IHaveGoggleInformation.java | 4 ++-- .../logistics/block/redstone/RedstoneLinkTileEntity.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/goggles/IHaveGoggleInformation.java b/src/main/java/com/simibubi/create/content/contraptions/goggles/IHaveGoggleInformation.java index 4e5ac57ab..e51750bf0 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/goggles/IHaveGoggleInformation.java +++ b/src/main/java/com/simibubi/create/content/contraptions/goggles/IHaveGoggleInformation.java @@ -61,9 +61,9 @@ public interface IHaveGoggleInformation { continue; ITextComponent fluidName = new TranslationTextComponent(fluidStack.getTranslationKey()).formatted(TextFormatting.GRAY); - ITextComponent contained = new StringTextComponent(format(fluidStack.getAmount()) + mb).formatted(TextFormatting.GOLD); + ITextComponent contained = new StringTextComponent(format(fluidStack.getAmount())).append(mb).formatted(TextFormatting.GOLD); ITextComponent slash = new StringTextComponent(" / ").formatted(TextFormatting.GRAY); - ITextComponent capacity = new StringTextComponent(format(tank.getTankCapacity(i)) + mb).formatted(TextFormatting.DARK_GRAY); + ITextComponent capacity = new StringTextComponent(format(tank.getTankCapacity(i))).append(mb).formatted(TextFormatting.DARK_GRAY); tooltip.add(indent.copy() .append(fluidName)); diff --git a/src/main/java/com/simibubi/create/content/logistics/block/redstone/RedstoneLinkTileEntity.java b/src/main/java/com/simibubi/create/content/logistics/block/redstone/RedstoneLinkTileEntity.java index 7d8e9dadb..5a11ab2ee 100644 --- a/src/main/java/com/simibubi/create/content/logistics/block/redstone/RedstoneLinkTileEntity.java +++ b/src/main/java/com/simibubi/create/content/logistics/block/redstone/RedstoneLinkTileEntity.java @@ -115,6 +115,7 @@ public class RedstoneLinkTileEntity extends SmartTileEntity { BlockPos attachedPos = pos.offset(attachedFace); world.updateNeighbors(pos, world.getBlockState(pos).getBlock()); world.updateNeighbors(attachedPos, world.getBlockState(attachedPos).getBlock()); + receivedSignalChanged = false; } }