Formatting

This commit is contained in:
vemacs 2016-03-06 11:14:08 -07:00
parent 73ad945101
commit 6d347881b7
1 changed files with 3 additions and 3 deletions

View File

@ -60,8 +60,8 @@ public final class InventoryWorkaround {
fakeInventory = Bukkit.getServer().createInventory(null, inventory.getType());
fakeInventory.setContents(contents);
}
Map<Integer, ItemStack> overFlow = addItems(fakeInventory, items);
if (overFlow.isEmpty()) {
Map<Integer, ItemStack> overflow = addItems(fakeInventory, items);
if (overflow.isEmpty()) {
addItems(inventory, items);
return null;
}
@ -70,7 +70,7 @@ public final class InventoryWorkaround {
// Returns what it couldn't store
public static Map<Integer, ItemStack> addItems(final Inventory inventory, final ItemStack... items) {
return addOversizedItems(inventory, 0, items);
return addOversizedItems(inventory, 0, items);
}
// Returns what it couldn't store