Skip to content

Commit c770670

Browse files
authored
Fix GS Info Item Copying Formatting Characters (#312)
* big believer in doing things again * whitespace change from docgen
1 parent 591acf2 commit c770670

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/postInit/thebetweenlands.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,3 +206,4 @@ mods.thebetweenlands.steeping_pot.recipeBuilder()
206206

207207

208208
mods.thebetweenlands.steeping_pot.addAcceptedItem(item('minecraft:gold_block'))
209+

src/main/java/com/cleanroommc/groovyscript/compat/vanilla/command/infoparser/InfoParserItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void iterate(List<ITextComponent> messages, @NotNull Iterator<ItemStack>
4545
ItemStack entry = entries.next();
4646
messages.add(information(entry, prettyNbt));
4747
// can only copy to clipboard if a client is running this
48-
if (FMLCommonHandler.instance().getSide().isClient()) copyToClipboard(copyText(entry, false));
48+
if (FMLCommonHandler.instance().getSide().isClient()) copyToClipboard(text(entry, false, prettyNbt));
4949
}
5050
while (entries.hasNext()) {
5151
messages.add(information(entries.next(), prettyNbt));

0 commit comments

Comments
 (0)