Fix some null warnings

This commit is contained in:
mezz committed 2016-10-20 23:51:14 -07:00
1 parent c6783e573c
commit 3178aa890d
22 files changed
+114 -95

No files matched your search

@@ -53,8 +53,9 @@ public abstract class ComponentIndexerInventory<T> extends ComponentInventory im
@Override
public ItemStack decrStackSize(final int index, final int amount) {
if (index >= 0) {
final ItemStack returnStack = this.getStackInSlot(index).copy();
ItemStack stackInSlot = this.getStackInSlot(index);
if (stackInSlot != null) {
final ItemStack returnStack = stackInSlot.copy();
this.setInventorySlotContents(index, null);
return returnStack;
}