PaperMC / PaperMC/Paper

Player#setAbsorptionAmount no longer valid

Open
#9,920 5 comments 0 reactions 0 assignees View on GitHub

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
4f95389dcdb858609406af169a415759

Observed/Actual behavior

Now at 1.20.2
d1cbf3d2fc7183c6728c709e1ad412c7

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

Open the contributing guide

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.