Resource loader breaks vanilla behaviour
See original GitHub issueHello.
By default, DefaultResourcePack#findInputStream
returns null
if resource was not found, however this mixin introduces a different behaviour that causes exception to be thrown. Could a PR be opened to implement a fix for that? (I can do that by myself if necessary)
Thanks
See https://github.com/xxDark/BetterLoading/issues/2#issuecomment-964729312
Issue Analytics
- State:
- Created 2 years ago
- Comments:21 (10 by maintainers)
Top Results From Across the Web
Crash · Issue #2 · xxDark/BetterLoading · GitHub
Your change fixed the crash, but now minecraft loads endlessly. I noticed that the mod still loads without the fabric-api, but unfortunately the...
Read more >Paper Per World Configuration - PaperMC Documentation
This may break resource packs that rely on durability values when ... picks up items depends on the world's difficulty (vanilla behavior).
Read more >Resource pack - Minecraft Wiki - Fandom
Behavior. Resource packs can be placed in the folder resourcepacks within the .minecraft folder. Each resource pack is either a sub-folder or a...
Read more >How do I get behavior packs on Minecraft PE 0.16.0? - Arqade
... it will load in the world with the behaviour packs and resource packs ... bottom titled vanilla resource pack and Vanilla behavior...
Read more >Fabric for Minecraft 1.19
Players should use Fabric Installer 0.11.0 and Fabric Loader 0.14.6 ... tags that Fabric mods can use, and register vanilla entries to them....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I will be able (to hopefully) confirm that it in fact does speed up performance if this issue gets either resolved in one way or another. I don’t want to catch all
IOException
’s due to overhead of backtrace capturing.The fabric mixin looks wrong to me in 2 ways.
This broken behaviour seems to have been introduced by this requested refactoring https://github.com/FabricMC/fabric/pull/1564#discussion_r669205725
Originally the PR overwrote
which does throw an IOException for not found.
But the refactoring made it overwrite
Which returns null for not found and doesn’t even throw an IOException.
The overwritten method has changed the signature to
which makes the method public and adds a throws IOException.
The mixin delegates to a Jar(Directory)ResourcePack backed by the minecraft.jar which will throw a ResourceNotFoundException if the resource is missing.
A similar mistake was made for at least getInputStream.