No description
Find a file
Bjarne Koll 0a8c873722
Call LivingEntity#onItemPickup before mutation (#9948)
The existing EntityPickupItemEvent fixes patch moves the call to LivingEntity#onItemPickup for piglins after the respective EntityPickupItemEvent calls, which is correct.
However the patch moved the call so far down the line that the existing logic already mutated the picked up item entity, leading to faulty state being passed to the onItemPickup method.

To prevent logic in LivingEntity#onItemPickup to read from an ItemEntity that was already mutated, this commit moves the calls prior to the two respective mutations (either gold_nugget or rest).

This was chosen above taking a copy of the original item and restoring state later on to avoid a full item stack clone.
2023-11-17 07:43:25 +01:00
.github [ci skip] Add gradle wrapper validation action 2023-07-11 23:25:02 +02:00
build-data Create raw chat type as resource file instead of in source (#9226) 2023-09-15 11:03:42 -07:00
gradle/wrapper [ci skip] Update Gradle wrapper 2023-08-21 19:16:46 +10:00
licenses [ci skip] add missing final newline (#8659) 2022-12-13 14:16:45 +01:00
Paper-MojangAPI Improve MojangAPI docs and replace @Deprecated with @ApiStatus.Experimental on draft APIs (#8261) 2022-08-07 13:47:43 -07:00
patches Call LivingEntity#onItemPickup before mutation (#9948) 2023-11-17 07:43:25 +01:00
scripts Updated Upstream (Bukkit/CraftBukkit) (#8172) 2022-07-22 11:18:00 -07:00
test-plugin [ci skip] clear out test plugin 2023-08-23 10:05:08 -07:00
work Updated Upstream (Bukkit/CraftBukkit) (#9922) 2023-11-11 12:25:45 -08:00
.editorconfig fix flat bedrock world config (#9728) 2023-10-10 14:43:10 -07:00
.gitattributes [ci skip] update editorconfig and gitattributes (#9608) 2023-08-22 12:16:03 +10:00
.gitignore [ci skip] Add .fleet/ folder to .gitignore (#8574) 2022-11-19 14:33:03 +01:00
.gitmodules
build.gradle.kts Bump tiny-remapper for Java 21 support (#9902) 2023-11-04 20:33:04 -07:00
CONTRIBUTING.md [ci skip] update mappings link (#9801) 2023-10-07 11:54:43 +02:00
gradle.properties So it begins... 2023-09-21 19:18:04 +02:00
gradlew [ci skip] Update Gradle wrapper 2023-08-21 19:16:46 +10:00
gradlew.bat [ci skip] Thank you gradle, very cool 2022-12-09 11:12:15 +01:00
LICENSE.md Allow non-op players to execute the click event callback (#9652) 2023-08-28 13:21:13 +02:00
README.md So it begins... 2023-09-21 19:18:04 +02:00
settings.gradle.kts Update foojay resolver convention plugin 2023-09-23 11:46:31 +10:00

Paper Paper Build Status Discord GitHub Sponsors Open Collective

The most widely used, high-performance Minecraft server that aims to fix gameplay and mechanics inconsistencies.

Support and Project Discussion:

How To (Server Admins)

Paperclip is a jar file that you can download and run just like a normal jar file.

Download Paper from our downloads page.

Run the Paperclip jar directly from your server. Just like old times

How To (Plugin Developers)

Repository (for paper-api)

Maven
<repository>
    <id>papermc</id>
    <url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<dependency>
    <groupId>io.papermc.paper</groupId>
    <artifactId>paper-api</artifactId>
    <version>1.20.2-R0.1-SNAPSHOT</version>
    <scope>provided</scope>
</dependency>
Gradle
repositories {
    maven {
        url = uri("https://repo.papermc.io/repository/maven-public/")
    }
}

dependencies {
    compileOnly("io.papermc.paper:paper-api:1.20.2-R0.1-SNAPSHOT")
}

java {
    toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}

How To (Compiling Jar From Source)

To compile Paper, you need JDK 17 and an internet connection.

Clone this repo, run ./gradlew applyPatches, then ./gradlew createReobfBundlerJar from your terminal. You can find the compiled jar in the project root's build/libs directory.

To get a full list of tasks, run ./gradlew tasks.

How To (Pull Request)

See Contributing

Support Us

First of all, thank you for considering helping out, we really appreciate that!

PaperMC has various recurring expenses, mostly related to infrastructure. Paper uses Open Collective via the Open Source Collective fiscal host to manage expenses. Open Collective allows us to be extremely transparent, so you can always see how your donations are used. You can read more about financially supporting PaperMC on our website.

You can find our collective here, or you can donate via GitHub Sponsors here, which will also go towards the collective.

Special Thanks To:

YourKit-Logo

YourKit, makers of the outstanding java profiler, support open source projects of all kinds with their full featured Java and .NET application profilers. We thank them for granting Paper an OSS license so that we can make our software the best it can be.

JetBrains, creators of the IntelliJ IDEA, supports Paper with one of their Open Source Licenses. IntelliJ IDEA is the recommended IDE for working with Paper, and most of the Paper team uses it.

All our sponsors!
Sponsor Image