Closed Fourmisain closed 3 years ago
Thanks for this. I won't be able to fix anything until Friday as I'm away
No problem, I wouldn't actually call this an issue until Fabric Loader 0.12 isn't called experimental anymore anyway. Player just said it should be possible to fix this issue properly, so maybe this workaround won't be required afterall.
I also realize I wasn't thinking when I suggested throw new AssertionError(info);
because that'd cause a crash when right clicking anything that's not a crop block (or any crop block that's not targeted by one of the mixins), a better workaround would be info.getId();
, since it has no further side-effects.
Any news on this?
I could be wrong but I'm fairly certain this issue got fixed in floader
It should be fixed, I'm unsure whether this has actually been released yet though
The first PR aimed to fix it was released with 0.12.3 but it didn't solve the issue. The new PR mentioned above was merged but isn't yet released. This issue will likely be solved with 0.12.4, I'll test it once it releases.
thanks
Tested it in the dev env and (after clearing the gradle cache) it worked!
Gonna do some more testing tomorrow, but I'm pretty sure this can be considered fixed.
Thanks for testing it :+1:
Right clicking crops started crashing with the new loader:
This very much looks like a Mixin issue so I've reported it here: https://github.com/FabricMC/Mixin/issues/68
There is a workaround however and that is to add a reference to
info
inside the currently emptyAbstractBlockMixin.onUseMixin()
, e.g. something likethrow new AssertionError(info);
That seems to ensure that Mixin actually generates theCallbackInfoReturnable
object and the cancelling logic, so maybe you wanna add that until the root cause is found.