Jump to content

[1.9.4] Property clash I think?


swordkorn

Recommended Posts

Hey guys. Out of the frying pan and into the fire! I fixed the issue with the hash code thanks to Choonster and diesieben and now I get this:

 

java.lang.IllegalArgumentException: Cannot set property PropertyInteger{name=age, clazz=class java.lang.Integer, values=[0, 1, 2, 3, 4, 5, 6, 7]} as it does not exist in BlockStateContainer{block=null, properties=[stage]}
at net.minecraft.block.state.BlockStateContainer$StateImplementation.withProperty(BlockStateContainer.java:211)
at net.minecraft.block.BlockCrops.<init>(BlockCrops.java:27)
at com.mysticalcrops.blocks.MysticalCropBlock.<init>(MysticalCropBlock.java:38)
at com.mysticalcrops.blocks.CropBlocks.registerBlockCrop(CropBlocks.java:19)
at com.mysticalcrops.blocks.CropBlocks.loadCropBlocks(CropBlocks.java:15)
at com.mysticalcrops.proxy.CommonProxy.init(CommonProxy.java:18)
at com.mysticalcrops.proxy.ClientProxy.init(ClientProxy.java:19)
at com.mysticalcrops.MysticalCrops.init(MysticalCrops.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 

My code for the block:

http://pastebin.com/bF69yDT0

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.