Jump to content

Help with PacketDispatcher error


Recommended Posts

okay so i've been updating the Sim-U-Kraft mod from 1.6 and intend to make it SMP later aswell, omong the 1,088 errors i have left i found this bit of code:

    for (World w : MinecraftServer.getServer().worldServers)
                        if (w.loadedEntityList.size() > 0)
                            serverWorld = w;
                            currentWorld = ModSimukraft.getSavesDataFolder();
                            ModSimukraft.log.info("CommTH: Startup - set serverWorld/currentWorld");
                            PacketDispatcher.sendPacketToAllPlayers(PacketHandler.makePacket("", "gamereset", ""));
                catch (Exception e)
                    serverWorld = null;   //will exception until first player has spawned!


i am quite new with forge and frankly i havent the foggiest what this does or where to begin to go about fixing the errors here:


PacketDispatcher cannot be resolved




The method makePacket(String, String, String) from the type PacketHandler refers to the missing type Packet250CustomPayload


could anybody tell me what i need to change to fix the errors?


sorry if this comes across as a vague question, if you need any more information ask for it and i will provide it

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.