Cinderscapes

Cinderscapes

1M Downloads

Crashes on the dedicated server

coderbot16 opened this issue ยท 1 comments

commented

Registry#containsId only exists on the client, so accessing it on the server crashes.

    @Environment(EnvType.CLIENT)
    public abstract boolean containsId(Identifier id);

It looks like the place where this is used is just sanity checking code:

https://github.com/TerraformersMC/Cinderscapes/blob/1.16.2/src/main/java/com/terraformersmc/cinderscapes/init/CinderscapeConfiguredFeatures.java#L201

It could be better to use getIds().contains() instead.

commented

Sounds like a good idea, I'll push a hotfix in a sec