Commits
md_5 authored 3408adb0090
1 - | --- /home/matt/mc-dev-private//net/minecraft/server/InventoryCrafting.java 2015-02-26 22:40:22.763608137 +0000 |
2 - | +++ src/main/java/net/minecraft/server/InventoryCrafting.java 2015-02-26 22:40:22.763608137 +0000 |
1 + | --- ../work/decompile-c2c33c10/net/minecraft/server/InventoryCrafting.java 2015-05-21 16:56:31.913113856 +1000 |
2 + | +++ src/main/java/net/minecraft/server/InventoryCrafting.java 2015-05-21 16:56:31.913113856 +1000 |
3 3 | |
4 4 | package net.minecraft.server; |
5 5 | |
6 6 | +// CraftBukkit start |
7 7 | +import java.util.List; |
8 8 | + |
9 9 | +import org.bukkit.craftbukkit.entity.CraftHumanEntity; |
10 10 | +import org.bukkit.entity.HumanEntity; |
11 11 | +import org.bukkit.event.inventory.InventoryType; |
12 12 | +// CraftBukkit end |
39 39 | + |
40 40 | + public void onClose(CraftHumanEntity who) { |
41 41 | + transaction.remove(who); |
42 42 | + } |
43 43 | + |
44 44 | + public List<HumanEntity> getViewers() { |
45 45 | + return transaction; |
46 46 | + } |
47 47 | + |
48 48 | + public org.bukkit.inventory.InventoryHolder getOwner() { |
49 - | + return owner.getBukkitEntity(); |
49 + | + return (owner == null) ? null : owner.getBukkitEntity(); |
50 50 | + } |
51 51 | + |
52 52 | + public void setMaxStackSize(int size) { |
53 53 | + maxStack = size; |
54 54 | + resultInventory.setMaxStackSize(size); |
55 55 | + } |
56 56 | + |
57 57 | + public InventoryCrafting(Container container, int i, int j, EntityHuman player) { |
58 58 | + this(container, i, j); |
59 59 | + this.owner = player; |