Skip to content

No update registries? #2143

Answered by SquidDev
SirEdvin asked this question in Q&A
Mar 13, 2025 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

I haven't seen the rest of your code, but I suspect you're looking up upgrades in the root registry? Upgrades are loaded into dynamic registries, so you need to go through the server's HolderLookup.Provider instead (e.g. level.registryAccess().lookupOrThrow(IPocketUpgrade.REGISTRY)).

My code usually heavy really on using upgrade id

Don't do that! Instead, you want to be reading upgrades through a codec instead (either PocketUpgrades.instance().upgradeCode() or upgradeDataCodec()). Yes, it's lot of code to rewrite, but trust me it looks nicer in the end!

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@SirEdvin
Comment options

@SirEdvin
Comment options

@SquidDev
Comment options

@SquidDev
Comment options

@SirEdvin
Comment options

Answer selected by SirEdvin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2142 on March 13, 2025 11:23.