Jump to content

[1.7.2-10.12.1.1061] Crash when placing specific item in a crafting table GUI


ninehous

Recommended Posts

I'm writing a small mod for my server (we have too many chests laying around...),

And today I encountered a weird crash when I placed one of my blocks in a crafting grid.

crash report (from my dev environment):

https://gist.github.com/ninehous/11325425

 

I read the whole file and there's not a single line involving one of my classes.

Any clue for a solution?

Before you write something that makes me dumb, read a couple of my posts back, and think again.

Link to comment
Share on other sites

It's a block by the way.

Also keep in mind that I started writing this mod only yesterday so there's not much yet.

package ninehous.compressedblocks.blocks;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.item.ItemStack;
import ninehous.compressedblocks.CompressedBlocks;
import cpw.mods.fml.common.registry.GameRegistry;




public class BlockCompressedFlint extends Block {
public static Block blockCompressedFlint;
public BlockCompressedFlint(){


	super(Material.rock);
	}

public static void init(){
    BlockCompressedFlint.blockCompressedFlint = new BlockCompressedFlint().setBlockName("blockCompressedFlint").setCreativeTab(CompressedBlocks.CBTab).setBlockTextureName(CompressedBlocks.modid + ":" + "blockCompressedFlint");
    GameRegistry.registerBlock(blockCompressedFlint, "blockCompressedFlint");
    GameRegistry.addRecipe(new ItemStack(blockCompressedFlint, 1), new Object[]{"fff", "fff", "fff", Character.valueOf('f'), new ItemStack(BlockFlint.blockFlint, 1)});
GameRegistry.addShapelessRecipe(new ItemStack(BlockFlint.blockFlint, 9), blockCompressedFlint);
    }




}

Before you write something that makes me dumb, read a couple of my posts back, and think again.

Link to comment
Share on other sites

I'm kinda new to modding... Once I have time (and will) I will change some stuff around.

Also, if it works, then it's fine for me until I find better ways to do stuff.

Before you write something that makes me dumb, read a couple of my posts back, and think again.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.