mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-23 13:40:11 +00:00
Run format
This commit is contained in:
1 parent
09be139b0e
commit
7da5552cc1
3 files changed
+13
-4
No files matched your search
@@ -50,8 +50,8 @@ public class ItemFlowerBag extends Item {
|
||||
public static boolean isValid(int slot, ItemStack stack) {
|
||||
Block blk = Block.getBlockFromItem(stack.getItem());
|
||||
return !stack.isEmpty()
|
||||
&& blk.getClass() == BlockModFlower.class
|
||||
&& slot == ((BlockModFlower) blk).color.getId();
|
||||
&& blk.getClass() == BlockModFlower.class
|
||||
&& slot == ((BlockModFlower) blk).color.getId();
|
||||
}
|
||||
|
||||
public static Inventory getInventory(ItemStack stack) {
|
||||
@@ -98,7 +98,7 @@ public class ItemFlowerBag extends Item {
|
||||
Inventory bagInv = getInventory(bag);
|
||||
ItemStack existing = bagInv.getStackInSlot(color);
|
||||
int newCount = Math.min(existing.getCount() + entityStack.getCount(),
|
||||
Math.min(existing.getMaxStackSize(), bagInv.getInventoryStackLimit()));
|
||||
Math.min(existing.getMaxStackSize(), bagInv.getInventoryStackLimit()));
|
||||
int numPickedUp = newCount - existing.getCount();
|
||||
|
||||
if (numPickedUp > 0) {
|
||||
|
||||
Reference in new issue
Block a user