Makes cape downloads use HTTPS... I didn't know whether or not if y'all would want this behind a config option so lmk
Uses https://optifine.net/capes/ rather than https://s.optifine.net/capes/ as sp614x said here
Makes cape downloads use HTTPS... I didn't know whether or not if y'all would want this behind a config option so lmk
Uses https://optifine.net/capes/ rather than https://s.optifine.net/capes/ as sp614x said here
There is little wrong with your idea in general. However, I think there are possible improvements regarding the implementation.
Ideally, you'd make use of @ModifyArg (on the usage of ofCapeUrl or on the StringBuilder#append that is used for the concat) or @ModifyVariable and then String#replace the old URL with the new one. This would allow other mods to also be able to modify this url if they desire without changes being silently overridden or the game crashing.
Thank you.
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?