Open wallabra opened 3 weeks ago
While this compiles just fine so far, the same error appears, which leads me to believe the BlockState
being built is not the one being accessed in the getPickBlock
call tree. I'll have to take a look at this tomorrow.
NOTE: This is a tentative fix implementation that has not yet been tested and is prone to change.
Using Rechiseled with HWYLA on 1.12.2 caused crashes, because HWYLA would call
getPickBlock
, which ends up callingnet.minecraft.block.BlockPlanks.damageDropped
which tries to get the block state'sBlockPlanks.EnumType
, which of course will not exist for Rechiseled blocks because they (unlike vanilla plank blocks) do not store the wood type in the block state.This is the actual error message I was getting:
This seeks to fix that, not by altering which block state is stored in the save data, but simply by - only when appopriate! - adding the
BlockPlanks.VARIANT
(EnumType
) property in theIBlockState
created by aRechiseledBlock
.Currently in draft mode because I'm having trouble building this, but I'm happy if you are able to look into this issue yourself (and maybe look at the code I wrote, I'm not very experienced at this, Minecraft isn't the kind of modding I'm used to).