forked from FabricMC/fabric
Fix wrong placeholders. (#60)
This commit is contained in:
parent
8f36b30bc8
commit
857f884694
2 changed files with 3 additions and 3 deletions
|
@ -56,7 +56,7 @@ public class GuiProviderImpl implements GuiProviderRegistry {
|
||||||
registerFactory(identifier, (syncId, identifier1, player, buf) -> {
|
registerFactory(identifier, (syncId, identifier1, player, buf) -> {
|
||||||
C container = ContainerProviderImpl.INSTANCE.createContainer(syncId, identifier1, player, buf);
|
C container = ContainerProviderImpl.INSTANCE.createContainer(syncId, identifier1, player, buf);
|
||||||
if(container == null){
|
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 null;
|
||||||
}
|
}
|
||||||
return guiFactory.create(container);
|
return guiFactory.create(container);
|
||||||
|
@ -70,7 +70,7 @@ public class GuiProviderImpl implements GuiProviderRegistry {
|
||||||
MinecraftClient.getInstance().execute(() -> {
|
MinecraftClient.getInstance().execute(() -> {
|
||||||
ContainerFactory<ContainerGui> factory = FACTORIES.get(identifier);
|
ContainerFactory<ContainerGui> factory = FACTORIES.get(identifier);
|
||||||
if (factory == null) {
|
if (factory == null) {
|
||||||
LOGGER.error("No GUI factory found for %s!", identifier.toString());
|
LOGGER.error("No GUI factory found for {}!", identifier.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ContainerGui gui = factory.create(syncId, identifier, packetContext.getPlayer(), packetByteBuf);
|
ContainerGui gui = factory.create(syncId, identifier, packetContext.getPlayer(), packetByteBuf);
|
||||||
|
|
|
@ -88,7 +88,7 @@ public class ContainerProviderImpl implements ContainerProviderRegistry {
|
||||||
public <C extends Container> C createContainer(int syncId, Identifier identifier, PlayerEntity player, PacketByteBuf buf){
|
public <C extends Container> C createContainer(int syncId, Identifier identifier, PlayerEntity player, PacketByteBuf buf){
|
||||||
ContainerFactory<Container> factory = FACTORIES.get(identifier);
|
ContainerFactory<Container> factory = FACTORIES.get(identifier);
|
||||||
if (factory == null) {
|
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 null;
|
||||||
}
|
}
|
||||||
return (C) factory.create(syncId, identifier, player, buf);
|
return (C) factory.create(syncId, identifier, player, buf);
|
||||||
|
|
Loading…
Reference in a new issue