Goodbye amount bar.

This commit is contained in:
Vasco Lavos committed 2015-12-25 03:55:21 +00:00
1 parent 30457d37b5
commit 3a5fc1dba4
3 files changed
+12 -2

No files matched your search

@@ -13,6 +13,7 @@ package vazkii.botania.client.integration.nei;
import vazkii.botania.api.corporea.CorporeaHelper;
import vazkii.botania.common.block.tile.corporea.TileCorporeaIndex;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.MathHelper;
@@ -36,7 +37,15 @@ public class NEIInputHandler implements IContainerInputHandler {
if(layoutManager != null && LayoutManager.itemPanel != null && !NEIClientConfig.isHidden()) {
ItemStack stack = GuiContainerManager.getStackMouseOver(gui);
if(stack != null && stack.getItem() != null) {
int count = NEIClientConfig.getItemQuantity();
int count = 1;
int max = stack.getMaxStackSize();
if(gui.isShiftKeyDown()) {
count = max;
if(gui.isCtrlKeyDown())
count /= 4;
} else if(gui.isCtrlKeyDown())
count = max / 2;
if(count > 0) {
String name = CorporeaHelper.stripControlCodes(stack.getDisplayName());
String full = count + " " + name;
@@ -852,7 +852,7 @@ public final class LexiconData {
corporea.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageText("3"), new PageText("4"), new PageText("5"), new PageText("6"), new PageCraftingRecipe("7", ModCraftingRecipes.recipeCorporeaSpark), new PageCraftingRecipe("8", ModCraftingRecipes.recipeMasterCorporeaSpark));
corporeaIndex = new ALexiconEntry(LibLexicon.ENDER_CORPOREA_INDEX, categoryEnder);
corporeaIndex.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageText("3"), new PageText("4"), new PageText("5"), new PageText("6"), new PageCraftingRecipe("7", ModCraftingRecipes.recipeCorporeaIndex));
corporeaIndex.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageText("3"), new PageText("4"), new PageText("5"), new PageText("8"), new PageText("6"), new PageCraftingRecipe("7", ModCraftingRecipes.recipeCorporeaIndex));
corporeaFunnel = new ALexiconEntry(LibLexicon.ENDER_CORPOREA_FUNNEL, categoryEnder);
corporeaFunnel.setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCraftingRecipes.recipeCorporeaFunnel));