Mark ItemStack as final

This commit is contained in:
Lilly 2024-02-16 20:32:45 +01:00
parent 44360de4aa
commit 56263a3cc2
No known key found for this signature in database
GPG Key ID: 82A649C8CE1E1EE5

View File

@ -5,14 +5,14 @@ Subject: [PATCH] Fix changes on item in EntityPickupItemEvent not reflected
diff --git a/src/main/java/org/bukkit/event/entity/EntityPickupItemEvent.java b/src/main/java/org/bukkit/event/entity/EntityPickupItemEvent.java
index 94ee5a3354722aa5d825da727b7b7071fdc6bacc..a907b0e49d27ac49a834e6be1c416f04f378da16 100644
index 94ee5a3354722aa5d825da727b7b7071fdc6bacc..64447122b6f917fced3bc10dd8e80ecaee983015 100644
--- a/src/main/java/org/bukkit/event/entity/EntityPickupItemEvent.java
+++ b/src/main/java/org/bukkit/event/entity/EntityPickupItemEvent.java
@@ -12,11 +12,21 @@ import org.jetbrains.annotations.NotNull;
public class EntityPickupItemEvent extends EntityEvent implements Cancellable {
private static final HandlerList handlers = new HandlerList();
private final Item item;
+ private org.bukkit.inventory.ItemStack itemStack; // Paper - Fix changes on item in EntityPickupItemEvent not reflected
+ private final org.bukkit.inventory.ItemStack itemStack; // Paper - Fix changes on item in EntityPickupItemEvent not reflected
private boolean cancel = false;
private final int remaining;