Fixes : Synchronize BlockEntityType to the client since mods use the Vanilla mechanism for block entity updates since 1.18. ()

This commit is contained in:
shartte 2021-12-22 18:08:02 +01:00 committed by GitHub
parent 3f7d361425
commit 533be9ba91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,8 +85,9 @@ public class FabricRegistryInit implements ModInitializer {
// Serialised by string, doesnt seem to be synced
RegistryAttributeHolder.get(Registry.BIOME_SOURCE);
// Not synced or saved
RegistryAttributeHolder.get(Registry.BLOCK_ENTITY_TYPE);
// Synced. Vanilla uses raw ids in BlockEntityUpdateS2CPacket, and mods use the Vanilla syncing since 1.18
RegistryAttributeHolder.get(Registry.BLOCK_ENTITY_TYPE)
.addAttribute(RegistryAttribute.SYNCED);
// Synced in PaintingSpawnS2CPacket
RegistryAttributeHolder.get(Registry.PAINTING_MOTIVE)