mirror of
https://github.com/FabricMC/fabric.git
synced 2025-06-01 16:04:36 -04:00
Improve 24w05a port (#3565)
* Fix wrong ops being used in AttachmentSerializingImpl * Remove unused private method * Require and use registry future in advancements and loot tables
This commit is contained in:
parent
03be9f1df2
commit
04ac8cf319
7 changed files with 51 additions and 36 deletions
fabric-data-attachment-api-v1/src/main/java/net/fabricmc/fabric/impl/attachment
|
@ -82,7 +82,7 @@ public class AttachmentSerializingImpl {
|
|||
|
||||
if (codec != null) {
|
||||
RegistryOps<NbtElement> registryOps = RegistryOps.of(NbtOps.INSTANCE, wrapperLookup);
|
||||
codec.parse(NbtOps.INSTANCE, compound.get(key))
|
||||
codec.parse(registryOps, compound.get(key))
|
||||
.get()
|
||||
.ifRight(partial -> {
|
||||
LOGGER.warn("Couldn't deserialize attachment " + type.identifier() + ", skipping. Error:");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue