Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Commit

Permalink
Fix #316
Browse files Browse the repository at this point in the history
  • Loading branch information
robotia committed Apr 27, 2016
1 parent df22cb4 commit 69505fc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public ItemStack getItem(int slot) {
if (slot == -999) {
return null;
}
return CraftItemStack.asCraftMirror(container.getSlot(slot).getStack());
net.minecraft.inventory.Slot s = container.getSlot(slot);
return s != null ? CraftItemStack.asCraftMirror(s.getStack()) : null;
}

public boolean isInTop(int rawSlot) {
Expand Down

0 comments on commit 69505fc

Please sign in to comment.