Open main menu
Home
Random
Log in
Settings
About Forge Community Wiki
Disclaimers
Forge Community Wiki
Search
Changes
← Older edit
Datapack Registries
(view source)
Revision as of 10:51, 18 December 2022
4 bytes added
,
10:51, 18 December 2022
m
→JsonCodecProvider
:
Fix code error on the last line (GatherDataEvent has no method named addProvider(), this is a member of DataGenerator)
Line 41:
Line 41:
dataGenerator, existingFileHelper, "modid", registryOps, Registry.PLACED_FEATURE_REGISTRY, map);
dataGenerator, existingFileHelper, "modid", registryOps, Registry.PLACED_FEATURE_REGISTRY, map);
−
event
.addProvider(event.includeServer(), provider);
+
generator
.addProvider(event.includeServer(), provider);
}
}
</syntaxhighlight>
</syntaxhighlight>
Xan
4
edits