SPIGOT-6483: Fix cancelling EntityPickupEvent for villagers
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/InventorySubcontainer.java
|
||||
+++ b/net/minecraft/world/InventorySubcontainer.java
|
||||
@@ -13,13 +13,64 @@
|
||||
@@ -13,13 +13,69 @@
|
||||
import net.minecraft.world.item.Item;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
|
||||
@@ -54,6 +54,11 @@
|
||||
+ public Location getLocation() {
|
||||
+ return null;
|
||||
+ }
|
||||
+
|
||||
+ public InventorySubcontainer(InventorySubcontainer original) {
|
||||
+ this.a = original.a;
|
||||
+ this.items = NonNullList.a(ItemStack.b, original.items.toArray(ItemStack[]::new));
|
||||
+ }
|
||||
+
|
||||
public InventorySubcontainer(int i) {
|
||||
+ this(i, null);
|
||||
|
||||
Reference in New Issue
Block a user