Skip to content

Commit

Permalink
Funny code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
quat1024 committed Oct 10, 2022
1 parent 01f90cc commit 821c399
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ public ItemStack createCustomizedStack(Block frame, Block inner, DyeColor color)

@Override
public Component getName(ItemStack stack) {
Component superName = super.getName(stack);

PackageContainer contents = PackageContainer.fromItemStack(stack);
if(contents != null) {
ItemStack contained = contents.getFilterStack();
Expand All @@ -55,7 +53,7 @@ public Component getName(ItemStack stack) {
};

if(nameReentrancy == 1) {
return new TranslatableComponent("block.packages.package.nonempty", superName, contentsComponent);
return new TranslatableComponent("block.packages.package.nonempty", super.getName(stack), contentsComponent);
} else {
return new TranslatableComponent("block.packages.package.nonempty.reentrant", contentsComponent);
}
Expand All @@ -65,7 +63,7 @@ public Component getName(ItemStack stack) {
}
}

return superName;
return super.getName(stack);
}

@Override
Expand All @@ -81,8 +79,8 @@ public void appendHoverText(ItemStack stack, @Nullable Level level, List<Compone
if(contents.computeAmplificationStatus()) {
tooltip.add(
new TranslatableComponent("packages.contents_tooltip.utimately",
new TranslatableComponent("block.packages.package.nonempty.contents", fullyMultipliedCount, root.getHoverName()).withStyle(ChatFormatting.DARK_RED))
.withStyle(ChatFormatting.DARK_GRAY)
new TranslatableComponent("block.packages.package.nonempty.contents", fullyMultipliedCount, root.getHoverName()).withStyle(ChatFormatting.DARK_RED)
).withStyle(ChatFormatting.DARK_GRAY)
);
}
}
Expand Down

0 comments on commit 821c399

Please sign in to comment.