mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
[Bleeding] Make crafting and enchanting inventories keep track of their owner rather than returning null. Addresses BUKKIT-1209
This commit is contained in:
committed by
EvilSeph
parent
4bcbe2d235
commit
b9a71db046
@@ -21,7 +21,7 @@ public class ContainerPlayer extends Container {
|
||||
|
||||
public ContainerPlayer(PlayerInventory playerinventory, boolean flag) {
|
||||
this.resultInventory = new InventoryCraftResult(); // CraftBukkit - moved to before InventoryCrafting construction
|
||||
this.craftInventory = new InventoryCrafting(this, 2, 2);
|
||||
this.craftInventory = new InventoryCrafting(this, 2, 2, playerinventory.player); // CraftBukkit - pass player
|
||||
this.craftInventory.resultInventory = this.resultInventory; // CraftBukkit - let InventoryCrafting know about its result slot
|
||||
this.player = playerinventory; // CraftBukkit - save player
|
||||
this.c = false;
|
||||
|
Reference in New Issue
Block a user