[Bleeding] Make crafting and enchanting inventories keep track of their owner rather than returning null. Addresses BUKKIT-1209

This commit is contained in:
Celtic Minstrel
2012-03-13 22:50:09 -04:00
committed by EvilSeph
parent 4bcbe2d235
commit b9a71db046
4 changed files with 7 additions and 4 deletions

View File

@@ -50,7 +50,10 @@ public class ContainerEnchantTable extends Container {
for (l = 0; l < 9; ++l) {
this.a(new Slot(playerinventory, l, 8 + l * 18, 142));
}
player = (Player) playerinventory.player.bukkitEntity; // CraftBukkit
// CraftBukkit start
player = (Player) playerinventory.player.bukkitEntity;
enchantSlots.player = player;
// CraftBukkit end
}
public void addSlotListener(ICrafting icrafting) {