MCUpdater / MCU-Bootstrap

Bootstrapping auto-updater for MCUpdater
Apache License 2.0
4 stars 3 forks source link

Vanilla Minecraft #9

Open endumiuz opened 4 years ago

endumiuz commented 4 years ago

I'm trying to add a vanilla minecraft serverpack but I get this error when trying to start it:

OpenJDK 64-Bit Server VM warning: ignoring option PermSize=128M; support was removed in 8.0 Error: Could not find or load main class net.minecraft.launchwrapper.Launch

Here's my XML:

<ServerPack version="3.4" xsi:schemaLocation="http://www.mcupdater.com http://files.mcupdater.com/ServerPackv2.xsd">
<Server id="vanilla" abstract="false" name="Minecraft" newsUrl="about:blank" version="1.12.2" generateList="true" autoConnect="true" revision="1" mainClass="net.minecraft.launchwrapper.Launch" launcherType="Vanilla"> </Server>
</ServerPack>

I don't want to have to start another launcher to play vanilla. Am I doing something wrong? It works if I add Forge.

smbarbour commented 4 years ago

For vanilla, the mainClass should be mainClass="net.minecraft.client.main.Main" instead of mainClass="net.minecraft.launchwrapper.Launch" for any version of Minecraft 1.6 or later

endumiuz commented 4 years ago

Ok, thanks! It would be nice if FastPack could set it to that if you don't specify --forge version.