From 821c3996de56d122d116726421a3ce7a5a3ff190 Mon Sep 17 00:00:00 2001 From: quat1024 Date: Mon, 10 Oct 2022 00:09:22 -0400 Subject: [PATCH] Funny code formatting --- .../highlysuspect/packages/item/PackageItem.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Xplat/src/main/java/agency/highlysuspect/packages/item/PackageItem.java b/Xplat/src/main/java/agency/highlysuspect/packages/item/PackageItem.java index de48381..054db1c 100644 --- a/Xplat/src/main/java/agency/highlysuspect/packages/item/PackageItem.java +++ b/Xplat/src/main/java/agency/highlysuspect/packages/item/PackageItem.java @@ -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(); @@ -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); } @@ -65,7 +63,7 @@ public Component getName(ItemStack stack) { } } - return superName; + return super.getName(stack); } @Override @@ -81,8 +79,8 @@ public void appendHoverText(ItemStack stack, @Nullable Level level, List