Random Things

Random Things

44M Downloads

java.lang.IllegalArgumentException: Cannot set property PropertyDirection on block randomthings:plate_extraction

Pythonic-Rainbow opened this issue ยท 3 comments

commented
commented

In short: This fails:

((ItemBlock) itemStack.getItem()).getBlock().getStateFromMeta(itemStack.getItem().getMetadata(itemStack.getMetadata()));

It looks very convoluted, but this is how vanilla's ItemBlock+Block work together to convert an item damage to a blockstate.

commented

It is

commented

Appears to be a duplicate of the already fixed #326