PaperMC / paperweight

Gradle build system plugin for Paper and Paper forks
240 stars 48 forks source link

Missing classes in server compilation whilst running patcher #253

Open TreemanKing opened 3 months ago

TreemanKing commented 3 months ago

Version: 1.7.2 Paperweight Patcher

Just a basic paperweight fork project is missing specific classes when compiled using non-reobfuscated compiled jar servers.

I've tested this with a test plugin that checks for a certain class, in this case org.bukkit.craftbukkit.block.data.CraftBlockData.

try {
    Class.forName("org.bukkit.craftbukkit.block.data.CraftBlockData");
    getLogger().info("Class found");
} catch (ClassNotFoundException e) {
    getLogger().severe("Class not found");
}

However, using non-reobfs, it works fine and a ClassNotFoundException doesn't occur.

Some things I've tried:

I've also asked on the paper discord in both build-tooling-help and paper-help but I was met with no replies.