mirror of
https://github.com/FabricMC/fabric.git
synced 2025-02-17 04:01:46 -05:00
Don't sync recipe serialisers (#4156)
* Don't sync recipe serialisers * Suppress error * Actually fix...
This commit is contained in:
parent
e618fefd93
commit
90e7264282
2 changed files with 5 additions and 4 deletions
|
@ -140,10 +140,6 @@ public class FabricRegistryInit implements ModInitializer {
|
|||
// Does not seem to be serialised, only queried by id. Not synced
|
||||
RegistryAttributeHolder.get(Registries.RECIPE_TYPE);
|
||||
|
||||
// Synced by id
|
||||
RegistryAttributeHolder.get(Registries.RECIPE_SERIALIZER)
|
||||
.addAttribute(RegistryAttribute.SYNCED);
|
||||
|
||||
// Synced by rawID in 24w03a+
|
||||
RegistryAttributeHolder.get(Registries.ATTRIBUTE)
|
||||
.addAttribute(RegistryAttribute.SYNCED);
|
||||
|
|
|
@ -147,6 +147,11 @@ public class RegistrySyncTest implements ModInitializer {
|
|||
return;
|
||||
}
|
||||
|
||||
if (registry.getValue().equals(Identifier.of("recipe_serializer"))) {
|
||||
// Recipe serializers are not synced, as there is an unused codec left over.
|
||||
return;
|
||||
}
|
||||
|
||||
if (!RegistryAttributeHolder.get(registry).hasAttribute(RegistryAttribute.SYNCED)) {
|
||||
throw new IllegalStateException("Registry " + registry.getValue() + " is not marked as SYNCED!");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue