Player#setAbsorptionAmount no longer valid
Open
Nobody has claimed this yet.
status: accepted
type: bug
- Dominant language
- Java
- Stars
- 12.7k
- Forks
- 3.5k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 11
Description
Expected behavior
Same as 1.20.1
Observed/Actual behavior
Now at 1.20.2
Steps/models to reproduce
@EventHandler
public void onPlayerInteract(final @NotNull PlayerInteractEvent e) {
e.getPlayer().setAbsorptionAmount(10.0);
}
Plugin and Datapack List
blank
Paper version
This server is running Paper version git-Paper-280 (MC: 1.20.2) (Implementing API version 1.20.2-R0.1-SNAPSHOT) (Git: 4675152)
You are running the latest version
Other
No response
Contributor guide
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 with the Player#setAbsorptionAmount API and compare its 1.20.1 and 1.20.2 behavior using the onPlayerInteract reproduction in the issue. Confirm the behavior on Paper 1.20.2, then verify that setting the amount to 10.0 produces the expected result from 1.20.1.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100