mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
12 lines
941 B
Diff
12 lines
941 B
Diff
|
--- a/net/minecraft/server/WorldLoader.java
|
||
|
+++ b/net/minecraft/server/WorldLoader.java
|
||
|
@@ -37,7 +37,7 @@
|
||
|
CloseableResourceManager closeableResourceManager = pair.getSecond();
|
||
|
LayeredRegistryAccess<RegistryLayer> layeredRegistryAccess = RegistryLayer.createRegistryAccess();
|
||
|
List<Registry.PendingTags<?>> list = TagLoader.loadTagsForExistingRegistries(
|
||
|
- closeableResourceManager, layeredRegistryAccess.getLayer(RegistryLayer.STATIC)
|
||
|
+ closeableResourceManager, layeredRegistryAccess.getLayer(RegistryLayer.STATIC), io.papermc.paper.plugin.lifecycle.event.registrar.ReloadableRegistrarEvent.Cause.INITIAL // Paper - tag lifecycle - add cause
|
||
|
);
|
||
|
RegistryAccess.Frozen frozen = layeredRegistryAccess.getAccessForLoading(RegistryLayer.WORLDGEN);
|
||
|
List<HolderLookup.RegistryLookup<?>> list2 = TagLoader.buildUpdatedLookups(frozen, list);
|