mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 02:55:17 +00:00
Fix too many registries being sent from server to client
Signed-off-by: cpw <[email protected]>
This commit is contained in:
2 files changed
+5
-3
No files matched your search
@@ -190,8 +190,10 @@ public class RegistryManager
|
||||
collect(Collectors.toList()) : Collections.emptyList();
|
||||
}
|
||||
|
||||
public static List<ResourceLocation> registryNames()
|
||||
public static List<ResourceLocation> getRegistryNamesForSyncToClient()
|
||||
{
|
||||
return new ArrayList<>(ACTIVE.registries.keySet());
|
||||
return ACTIVE.registries.keySet().stream().
|
||||
filter(resloc -> ACTIVE.synced.contains(resloc)).
|
||||
collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user