getPickBlock gets the state from the world despite being given one
Ellpeck opened this issue ยท 0 comments
This usually shouldn't be a problem, but it creates one with Patchouli because it gets the pick block without the block actually being present in the world at that time. It passes the right state, but the state doesn't exist in the world at that moment.
Basically, change this line to
return new ItemStack(this, 1, getMetaFromState(state));