High performance Spigot fork that aims to fix gameplay and mechanics inconsistencies https://papermc.io/
Find a file
Bjarne Koll 508a295b44
Only erase allay memory on non-item targets (#9570)
* Only erase allay memory on non-item targets

Spigot incorrectly instanceOf checks the EntityTargetEvent#getTarget
against the internal ItemEntity type and removes the nearest wanted item
memory if said instanceOf check fails, (which is always the case)
causing allays to behave differently as they constantly loose their
target item.

This commit fixes the faulty behaviour by instance performing a check
against the CraftItem type.

* Reduce diff

* fix typo

---------

Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2023-08-05 17:31:10 -07:00
.github [ci skip] Add gradle wrapper validation action 2023-07-11 23:25:02 +02:00
build-data Updated Upstream (Bukkit/CraftBukkit) (#9485) 2023-08-05 17:21:59 -07:00
gradle/wrapper [ci skip] Update Gradle plugins and wrapper (#9140) 2023-04-26 10:07:13 -07: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 Only erase allay memory on non-item targets (#9570) 2023-08-05 17:31:10 -07:00
scripts Updated Upstream (Bukkit/CraftBukkit) (#8172) 2022-07-22 11:18:00 -07:00
test-plugin fix not editable sign after openSign 2023-06-08 19:45:58 -07:00
work Updated Upstream (Bukkit/CraftBukkit) (#9485) 2023-08-05 17:21:59 -07:00
.editorconfig Move to configurate for paper.yml (#7609) 2022-06-09 10:51:45 +02:00
.gitattributes Fix patch, fix .gitattributes file name 2021-06-12 14:09:11 +02:00
.gitignore [ci skip] Add .fleet/ folder to .gitignore (#8574) 2022-11-19 14:33:03 +01:00
.gitmodules Remove Paperclip submodule 2021-06-15 01:44:13 -05:00
build.gradle.kts 1.20.1 (#9333) 2023-06-13 09:10:07 +02:00
CONTRIBUTING.md [ci skip] Update README and CONTRIBUTING (#8917) 2023-02-26 12:37:41 -07:00
gradle.properties 1.20.1 (#9333) 2023-06-13 09:10:07 +02:00
gradlew [ci skip] Update Gradle wrapper to 8.0.1 (#8924) 2023-02-27 15:30:04 -07:00
gradlew.bat [ci skip] Thank you gradle, very cool 2022-12-09 11:12:15 +01:00
LICENSE.md Update the server logo (#9264) 2023-06-16 16:20:31 +01:00
README.md [ci skip] Update Repo style and change project url in README (#9407) 2023-06-28 10:23:05 +02:00
settings.gradle.kts [ci skip] Update download urls (#9100) 2023-04-04 17:06:59 -07:00

Paper Paper Build Status Discord GitHub Sponsors Open Collective

High-performance Spigot fork 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.1-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.1-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