#I'm making a screen, but it says the screen is not properly initialized.
1 messages · Page 1 of 1 (latest)
[fabric-screen-api-v1] The current screen (net.minecraft.client.gui.screen.Screen) has not been correctly initialised, please send this crash log to the mod author. This is usually caused by the screen not calling super.init(Lnet/minecraft/client/MinecraftClient;II)V
this is the full error log
Hover client word
There is an answer for you why not working
Argument 'client' might be null?
Try putting MinecraftClient.getInstance()
Could you just leave out the super.init call?
how do you open the screen?
with client packet
it looks like this
public class SetHomeScreenS2CPacket {
public static void recieve(MinecraftClient client, ClientPlayNetworkHandler clientPlayNetworkHandler, PacketByteBuf packetByteBuf, PacketSender packetSender) {
client.setScreen(new HomeScreen());
}
}
@lusty widget Ping in case you miss. sry if it bothered you)
could you wrap it around a MinecraftClient.execute call?
You’re calling a different super init. You sould call super.init() with no args.