From 303b32e87263e277447019f95c8f9703194b3018 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Sat, 12 Dec 2020 15:23:09 +0000 Subject: [PATCH] Fix registry sync being applied when its not supposed to be. Fixes #1217 Fixes #1216 --- .../fabric/impl/registry/sync/FabricRegistryClientInit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/impl/registry/sync/FabricRegistryClientInit.java b/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/impl/registry/sync/FabricRegistryClientInit.java index b8469433d..ba1f7d950 100644 --- a/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/impl/registry/sync/FabricRegistryClientInit.java +++ b/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/impl/registry/sync/FabricRegistryClientInit.java @@ -31,7 +31,7 @@ public class FabricRegistryClientInit implements ClientModInitializer { public void onInitializeClient() { ClientPlayNetworking.registerGlobalReceiver(RegistrySyncManager.ID, (client, handler, buf, responseSender) -> { // if not hosting server, apply packet - RegistrySyncManager.receivePacket(client, buf, RegistrySyncManager.DEBUG || client.isInSingleplayer(), (e) -> { + RegistrySyncManager.receivePacket(client, buf, RegistrySyncManager.DEBUG || !client.isInSingleplayer(), (e) -> { LOGGER.error("Registry remapping failed!", e); client.execute(() -> {