Issue blockstate get from the item meta is set to be at 0,0,0 problam
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 4.4k
- Forks
- 623
- PR merge metrics
- No merged PRs in 30d
Description
Expected behavior
ShulkerBox Should open properly after right click.
Observed/Actual behavior
There is an error: at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
[03:22:26 ERROR]: Could not pass event PlayerInteractEvent to NekoPlugin v1.4-SNAPSHOT
java.lang.IllegalStateException: Thread failed main thread check: Cannot queue block even data async, context=[thread=Region Scheduler Thread #2,class=io.papermc.paper.threadedregions.TickRegionScheduler$TickThreadRunner,region={center=[-89, 17],world=world}], world=world, block_pos=BlockPos{x=0, y=0, z=0}
Steps/models to reproduce
1.Write a plugin using the following code: https://pastes.dev/Xs6McEXrCv
2.compile plugin put and start server
3.add Shulker Box to you inventory and right-click on air
4.got error
Plugin and Datapack List
Plugin: Neko-Plugin(by me)
Datapack: Not have
Folia version
This server is running Folia version 1.21.4-DEV-dev/hard-fork@3af04d9 (1970-01-01T00:00:00Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
Other
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the linked plugin code and the reported Folia 1.21.4 version, then trace the PlayerInteractEvent error and its block_pos={x=0, y=0, z=0} context. Done means right-clicking a Shulker Box on air opens it without the async block-data or main-thread-check error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100