HMCL-dev / HMCL-dev/HelloNBT

NBTPath.of("quest.087F6C09CB5B2D1A.title") Failure

Open
#5 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
11
Forks
1
PR merge metrics
No merged PRs in 30d

Description

NBTPath.of("quest.087F6C09CB5B2D1A.title");

throws

java.lang.IllegalArgumentException: Unexpected character: .
	at org.glavo.nbt.internal.snbt.SNBTParser.readNextToken(SNBTParser.java:280)
	at org.glavo.nbt.internal.snbt.SNBTParser.peekToken(SNBTParser.java:311)
	at org.glavo.nbt.internal.snbt.SNBTParser.nextPath(SNBTParser.java:536)
	at org.glavo.nbt.NBTPath.of(NBTPath.java:38)
	at cn.elytra.translatools.internal.handler.PlainSnbtHandler.injectData(PlainSnbtHandler.kt:51)
	... 9 more

However, Minecraft (Fabric 26.1.2) works fine

net.minecraft.commands.arguments.NbtPathArgument.NbtPath.of("quest.087F6C09CB5B2D1A.title")

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at NBTPath.of in NBTPath.java and follow nextPath, readNextToken, and peekToken in SNBTParser.java, using the reported quest.087F6C09CB5B2D1A.title input as the reproduction. Compare the behavior with Minecraft's NbtPathArgument.NbtPath.of; done means the example parses without the reported IllegalArgumentException and the behavior is covered by a regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.