OpenMods / OpenPeripheral-Addons

An addon for OpenPeripheral, adding physical blocks and items to the game
MIT License
11 stars 10 forks source link

java.lang.NullPointerException #35

Closed RothX closed 10 years ago

RothX commented 10 years ago

I was using this mod fine for a while until I installed the Farlanders mod. I looked up a fix and it told me to change some IDs, and I did. Now I am getting a different error referring to something try to use an itemstack that is equal to null. It crashes on startup every time. http://pastebin.com/LsTE8m1G

I posted this on the Open Peripheral issue tracker, but I got the response from "Boq" "Looks like you disabled some ComputerCraft blocks (at least cable one). Or something is interfering with block names. Anyway, we can't fix that on our side.

BTW, this bug should be reported for OpenPeripheral-Addons"

So here I am posting on Open-Peripheral Addons. I know that I disabled nothing, so if this a bug you can't fix, could someone give me some more information on why this isn't working.

boq commented 10 years ago

Tough luck, it's still me in here.

We can't help you, since we need block and it isn't available. Specifically, line

Block blockCable = GameRegistry.findBlock("ComputerCraft", "CC-Cable");

returns null. And it shouldn't, since ComputerCraft contains following lines:

@Mod(modid="ComputerCraft", name="ComputerCraft", version="1.63")
...
GameRegistry.registerBlock(ComputerCraft.Blocks.cable, ItemCable.class, "CC-Cable");

So it isn't our problem.

You can link issues from other projects like this: OpenMods/OpenPeripheral#196.

RothX commented 10 years ago

So I should post this on ComputerCraft? Is that what you are saying?

boq commented 10 years ago

No. I'm saying that both ComputerCraft and OpenPeripheral-Addons behave like they should, but something in your setup breaks some common assumptions.