Last request. Promise.
I'm now stuck on the
World#setBlockState
bit, simply because I don't know what to put for the
state
argument.
worldIn.setBlockState(pos, /* I have no idea what goes here */);
Should I have named the states in
#getStateFromMeta
?
Could you check through, maybe give me a hint as to what I'm doing wrong?
@Override
public IBlockState getStateFromMeta(int meta) {
return getDefaultState().withProperty(LIT, meta == 0 ? false : true);
}
EDIT:
Is this okay?
worldIn.setBlockState(pos, getStateFromMeta(0));
DOUBLE EDIT:
Awesome, everything works - thanks!