Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing classes in server compilation whilst running patcher #253

Open
TreemanKing opened this issue Aug 23, 2024 · 0 comments
Open

Missing classes in server compilation whilst running patcher #253

TreemanKing opened this issue Aug 23, 2024 · 0 comments

Comments

@TreemanKing
Copy link

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:

  • made sure that the build, settings is basically a replica of the paperweight-test-examples and updated to most recent upstream depenencies
  • added some paper build things that aren't in the test-examples
reobfPackagesToFix.addAll(
    "com.aikar.timings",
    "com.destroystokyo.paper",
    "com.mojang",
    "io.papermc.paper",
    "ca.spottedleaf",
    "net.kyori.adventure.bossbar",
    "net.minecraft",
    "org.bukkit.craftbukkit",
    "org.spigotmc"
)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant