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

How to integrate block and fluid features? #54

Open
AntonIXO opened this issue Jul 2, 2024 · 0 comments
Open

How to integrate block and fluid features? #54

AntonIXO opened this issue Jul 2, 2024 · 0 comments

Comments

@AntonIXO
Copy link

AntonIXO commented Jul 2, 2024

I've tried to add this into server startup code:

VanillaReimplementation vri = VanillaReimplementation.hook(MinecraftServer.process());
vri.feature(FluidSimulationFeature.class);
VanillaBlocks.registerAll(vri);

But it results in:

Exception in thread "main" java.lang.NullPointerException: Feature class io.github.togar2.fluids.FluidSimulationFeature has not loaded yet.
        at java.base/java.util.Objects.requireNonNull(Objects.java:360)
        at net.minestom.vanilla.VanillaReimplementationImpl.feature(VanillaReimplementationImpl.java:87)
        at org.minebit.Main.main(Main.java:68)

How to integrate features? What better to use: vri.feature or .registerAll(vri) and why it does not loading needed class?

@AntonIXO AntonIXO changed the title How to integrate block and fluid features How to integrate block and fluid features? Jul 2, 2024
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