Skip to content

Commit 8ec3730

Browse files
committed
code cleanup RPRenamesCommand
1 parent adaaa0f commit 8ec3730

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/com/HiWord9/RPRenames/mod/RPRenamesCommand.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,7 @@ private static void printRenameList(List<Rename> renames, FabricClientCommandSou
181181
String giveCommand = "/give @s "
182182
+ Util.idFromItem(itemStack.getItem())
183183
+ components
184-
+ (r instanceof CITRename citRename ?
185-
(citRename.getStackSize() == 1 ? "" : " " + citRename.getStackSize()) : "");
184+
+ (itemStack.getCount() > 1 ? " " + itemStack.getCount() : "");
186185

187186
ClickEvent runGive = new ClickEvent.RunCommand(giveCommand);
188187
source.sendFeedback(

0 commit comments

Comments
 (0)