mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-01 00:10:32 +01:00
Mark ItemStack as final
This commit is contained in:
parent
44360de4aa
commit
56263a3cc2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user