That got it to work, but now I'm in the world with just a black screen and whenever I click on the screen this appears in the log:
########## GL ERROR ##########
@ Render
65539: Invalid key -1
Just as the title says, whenever I try to create a world I am kicked back to the loading screen, the world still exists in the menu though, it just sends me back when I try to join it. There are a lot of mods so I'm having a hard time finding the issue.
This is the log: https://paste.ubuntu.com/p/YxhtYYMRw4/