From 23e23f5836234d4ddf29c66280843d0531583b26 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 2 Oct 2015 20:10:11 +0200 Subject: [PATCH] I is derp --- .../ellpeck/actuallyadditions/nei/HairyBallRecipeHandler.java | 4 ++-- .../java/ellpeck/actuallyadditions/nei/NeiScreenEvents.java | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/ellpeck/actuallyadditions/nei/HairyBallRecipeHandler.java b/src/main/java/ellpeck/actuallyadditions/nei/HairyBallRecipeHandler.java index a41a9f7da..799c39bac 100644 --- a/src/main/java/ellpeck/actuallyadditions/nei/HairyBallRecipeHandler.java +++ b/src/main/java/ellpeck/actuallyadditions/nei/HairyBallRecipeHandler.java @@ -15,7 +15,6 @@ import codechicken.nei.NEIServerUtils; import codechicken.nei.PositionedStack; import codechicken.nei.recipe.RecipeInfo; import codechicken.nei.recipe.TemplateRecipeHandler; -import ellpeck.actuallyadditions.items.InitItems; import ellpeck.actuallyadditions.recipe.HairyBallHandler; import ellpeck.actuallyadditions.util.ModUtil; import ellpeck.actuallyadditions.util.StringUtil; @@ -38,7 +37,8 @@ public class HairyBallRecipeHandler extends TemplateRecipeHandler implements INe @Override public ItemStack getStackForInfo(){ - return new ItemStack(InitItems.itemHairyBall); + //TODO Add Hairy Ball Page + return null; } public class CachedBallRecipe extends CachedRecipe{ diff --git a/src/main/java/ellpeck/actuallyadditions/nei/NeiScreenEvents.java b/src/main/java/ellpeck/actuallyadditions/nei/NeiScreenEvents.java index 9400dec81..1144d0ab3 100644 --- a/src/main/java/ellpeck/actuallyadditions/nei/NeiScreenEvents.java +++ b/src/main/java/ellpeck/actuallyadditions/nei/NeiScreenEvents.java @@ -19,8 +19,6 @@ import ellpeck.actuallyadditions.booklet.page.BookletPage; import ellpeck.actuallyadditions.util.ItemUtil; import ellpeck.actuallyadditions.util.StringUtil; import net.minecraft.client.Minecraft; -import net.minecraft.client.audio.PositionedSoundRecord; -import net.minecraft.util.ResourceLocation; import net.minecraftforge.client.event.GuiScreenEvent; public class NeiScreenEvents{ @@ -68,7 +66,6 @@ public class NeiScreenEvents{ for(BookletPage page : InitBooklet.pagesWithItemStackData){ if(ItemUtil.contains(page.getItemStacksForPage(), ((INeiRecipeHandler)handler).getStackForInfo(), true)){ GuiBooklet book = new GuiBooklet(Minecraft.getMinecraft().currentScreen); - Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.func_147674_a(new ResourceLocation("gui.button.press"), 1.0F)); Minecraft.getMinecraft().displayGuiScreen(book); book.openIndexEntry(page.getChapter().entry, InitBooklet.entries.indexOf(page.getChapter().entry)/GuiBooklet.CHAPTER_BUTTONS_AMOUNT+1, true); book.openChapter(page.getChapter(), page);