diff options
author | Nassim <[email protected]> | 2021-06-01 12:19:10 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-01 12:19:10 +0200 |
commit | b94a99b0337823efb2863243deeb8701c3ff781e (patch) | |
tree | 64dcb6c1b11957272e5b54c220766bd623e16761 | |
parent | f5cb169e01181f7df516031934e9fa3d248f04b6 (diff) | |
download | Paper-b94a99b0337823efb2863243deeb8701c3ff781e.tar.gz Paper-b94a99b0337823efb2863243deeb8701c3ff781e.zip |
Updated Upstream (CraftBukkit) (#5762)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing
CraftBukkit Changes:
90a4d64a Remove usage of Java 11 method not caught by animal sniffer
c51c0f7f SPIGOT-6483: Fix cancelling EntityPickupEvent for villagers
-rw-r--r-- | Spigot-Server-Patches/0751-Add-BellRevealRaiderEvent.patch (renamed from Spigot-Server-Patches/0752-Add-BellRevealRaiderEvent.patch) | 0 | ||||
-rw-r--r-- | Spigot-Server-Patches/0751-Reset-villager-inventory-on-cancelled-pickup-event.patch | 42 | ||||
-rw-r--r-- | Spigot-Server-Patches/0752-Fix-invulnerable-end-crystals.patch (renamed from Spigot-Server-Patches/0753-Fix-invulnerable-end-crystals.patch) | 0 | ||||
-rw-r--r-- | Spigot-Server-Patches/0753-Add-ElderGuardianAppearanceEvent.patch (renamed from Spigot-Server-Patches/0754-Add-ElderGuardianAppearanceEvent.patch) | 0 | ||||
m--------- | work/CraftBukkit | 0 |
5 files changed, 0 insertions, 42 deletions
diff --git a/Spigot-Server-Patches/0752-Add-BellRevealRaiderEvent.patch b/Spigot-Server-Patches/0751-Add-BellRevealRaiderEvent.patch index a19790a857..a19790a857 100644 --- a/Spigot-Server-Patches/0752-Add-BellRevealRaiderEvent.patch +++ b/Spigot-Server-Patches/0751-Add-BellRevealRaiderEvent.patch diff --git a/Spigot-Server-Patches/0751-Reset-villager-inventory-on-cancelled-pickup-event.patch b/Spigot-Server-Patches/0751-Reset-villager-inventory-on-cancelled-pickup-event.patch deleted file mode 100644 index ab636ddb2e..0000000000 --- a/Spigot-Server-Patches/0751-Reset-villager-inventory-on-cancelled-pickup-event.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: BillyGalbreath <[email protected]> -Date: Fri, 28 May 2021 06:48:48 -0500 -Subject: [PATCH] Reset villager inventory on cancelled pickup event - - -diff --git a/src/main/java/net/minecraft/world/InventorySubcontainer.java b/src/main/java/net/minecraft/world/InventorySubcontainer.java -index 760e61167a053b9df73823600561ddb0cf3ff2c7..4a30630ca7596f95c9dd871e5bc1e2e1ea8abc08 100644 ---- a/src/main/java/net/minecraft/world/InventorySubcontainer.java -+++ b/src/main/java/net/minecraft/world/InventorySubcontainer.java -@@ -34,6 +34,16 @@ public class InventorySubcontainer implements IInventory, AutoRecipeOutput { - return this.items; - } - -+ // Paper start -+ public void setContents(List<ItemStack> items) { -+ this.items.clear(); -+ for(int i = 0; i < items.size(); i++) { -+ this.items.set(i, items.get(i)); -+ } -+ this.update(); -+ } -+ // Paper end -+ - public void onOpen(CraftHumanEntity who) { - transaction.add(who); - } -diff --git a/src/main/java/net/minecraft/world/entity/npc/EntityVillager.java b/src/main/java/net/minecraft/world/entity/npc/EntityVillager.java -index 3f081177814dc874047e35e294ed18609f082d76..9278b8546a57f21051a65d59c2c01d39afaa68cc 100644 ---- a/src/main/java/net/minecraft/world/entity/npc/EntityVillager.java -+++ b/src/main/java/net/minecraft/world/entity/npc/EntityVillager.java -@@ -845,8 +845,10 @@ public class EntityVillager extends EntityVillagerAbstract implements Reputation - } - - // CraftBukkit start -+ List<ItemStack> contentsSnapshot = new java.util.ArrayList<>(inventorysubcontainer.getContents()); // Paper - ItemStack itemstack1 = inventorysubcontainer.a(itemstack); - if (CraftEventFactory.callEntityPickupItemEvent(this, entityitem, itemstack1.getCount(), false).isCancelled()) { -+ inventorysubcontainer.setContents(contentsSnapshot); // Paper - return; - } - // CraftBukkit end diff --git a/Spigot-Server-Patches/0753-Fix-invulnerable-end-crystals.patch b/Spigot-Server-Patches/0752-Fix-invulnerable-end-crystals.patch index 7d36d72742..7d36d72742 100644 --- a/Spigot-Server-Patches/0753-Fix-invulnerable-end-crystals.patch +++ b/Spigot-Server-Patches/0752-Fix-invulnerable-end-crystals.patch diff --git a/Spigot-Server-Patches/0754-Add-ElderGuardianAppearanceEvent.patch b/Spigot-Server-Patches/0753-Add-ElderGuardianAppearanceEvent.patch index 27121d2be1..27121d2be1 100644 --- a/Spigot-Server-Patches/0754-Add-ElderGuardianAppearanceEvent.patch +++ b/Spigot-Server-Patches/0753-Add-ElderGuardianAppearanceEvent.patch diff --git a/work/CraftBukkit b/work/CraftBukkit -Subproject 769a579cb0f61467b3ce0e0ae0e5a2bff352f52 +Subproject 90a4d64a9a73ab46cf7a87ddd86bf5795154dad |