append, not add

This commit is contained in:
zelophed 2021-04-02 22:14:40 +02:00
parent 6cfbf26f49
commit 2b00602446
2 changed files with 3 additions and 2 deletions

View File

@ -61,9 +61,9 @@ public interface IHaveGoggleInformation {
continue; continue;
ITextComponent fluidName = new TranslationTextComponent(fluidStack.getTranslationKey()).formatted(TextFormatting.GRAY); 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 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() tooltip.add(indent.copy()
.append(fluidName)); .append(fluidName));

View File

@ -115,6 +115,7 @@ public class RedstoneLinkTileEntity extends SmartTileEntity {
BlockPos attachedPos = pos.offset(attachedFace); BlockPos attachedPos = pos.offset(attachedFace);
world.updateNeighbors(pos, world.getBlockState(pos).getBlock()); world.updateNeighbors(pos, world.getBlockState(pos).getBlock());
world.updateNeighbors(attachedPos, world.getBlockState(attachedPos).getBlock()); world.updateNeighbors(attachedPos, world.getBlockState(attachedPos).getBlock());
receivedSignalChanged = false;
} }
} }