Closed ErrorCraft closed 10 months ago
Wait I just realised I am on fabric-loom, not fabric-loader, grr
(I'll mention @modmuss50 as it was their comment on the other issue)
Have you got a mixin that implements your mixin on the target class?
If I go back to fabric loader version 0.14.22 and add the injected interface there, then update to fabric loader version 0.14.23 again it gets applied just fine and doesn't throw a NoSuchMethodError
. However, if I add the interface when already on 0.14.23, I do get the error.
Also note that if the injected interface was already there in 0.14.22 and you try to remove it in 0.14.23, it fails to remove it too. In fact, the complete opposite happens from what is described above: the IDE doesn't report any errors until you try to build the project.
Have you refreshed your Gradle configuration in your IDE after modifying the access widener? Gradle needs to run for Loom to update the game jar.
That seems to solve the issue, but I didn't have to do that before. Previously a simple build would suffice. (Other than the occasional Windows "the process cannot access the file because it is being used by another process" shenanigans)
You must refresh gradle after editing something like this so it can regenerate the minecraft jar.
Old injected interfaces seem to be fine, which is even stranger. The methods aren't recognised by the IDE either and reports it as an error, but it still compiles and can launch the game. This did not happen on version 0.14.22.
Crash report: crash-2023-10-07_10.52.46-client.txt Steps to reproduce:
class_4538
(net.minecraft.world.WorldView
) using interface injection.net.minecraft.Block
.Block::getPickStack
method)NoSuchMethodError
.