diff --git a/src/main/java/net/fabricmc/fabric/impl/client/gui/GuiProviderImpl.java b/src/main/java/net/fabricmc/fabric/impl/client/gui/GuiProviderImpl.java index 19da12b3c..18d32fb32 100644 --- a/src/main/java/net/fabricmc/fabric/impl/client/gui/GuiProviderImpl.java +++ b/src/main/java/net/fabricmc/fabric/impl/client/gui/GuiProviderImpl.java @@ -56,7 +56,7 @@ public class GuiProviderImpl implements GuiProviderRegistry { registerFactory(identifier, (syncId, identifier1, player, buf) -> { C container = ContainerProviderImpl.INSTANCE.createContainer(syncId, identifier1, player, buf); if(container == null){ - LOGGER.error("Could not open container for %s - a null object was created!", identifier1.toString()); + LOGGER.error("Could not open container for {} - a null object was created!", identifier1.toString()); return null; } return guiFactory.create(container); @@ -70,7 +70,7 @@ public class GuiProviderImpl implements GuiProviderRegistry { MinecraftClient.getInstance().execute(() -> { ContainerFactory factory = FACTORIES.get(identifier); if (factory == null) { - LOGGER.error("No GUI factory found for %s!", identifier.toString()); + LOGGER.error("No GUI factory found for {}!", identifier.toString()); return; } ContainerGui gui = factory.create(syncId, identifier, packetContext.getPlayer(), packetByteBuf); diff --git a/src/main/java/net/fabricmc/fabric/impl/container/ContainerProviderImpl.java b/src/main/java/net/fabricmc/fabric/impl/container/ContainerProviderImpl.java index a46989030..b68c5d4a3 100644 --- a/src/main/java/net/fabricmc/fabric/impl/container/ContainerProviderImpl.java +++ b/src/main/java/net/fabricmc/fabric/impl/container/ContainerProviderImpl.java @@ -88,7 +88,7 @@ public class ContainerProviderImpl implements ContainerProviderRegistry { public C createContainer(int syncId, Identifier identifier, PlayerEntity player, PacketByteBuf buf){ ContainerFactory factory = FACTORIES.get(identifier); if (factory == null) { - LOGGER.error("No container factory found for %s!", identifier.toString()); + LOGGER.error("No container factory found for {}!", identifier.toString()); return null; } return (C) factory.create(syncId, identifier, player, buf);