Skip to content

Crash related to commonside calls on a server side environment. #35

@omegadmm

Description

@omegadmm

Momo-Softworks/Cold-Sweat#648
Kept having this crash when doing modlist parity testing for a dedicated server.

crash-2026-03-21_15.38.12-fml.txt

latest(1).log

FWD:"Doing some debugging, I figured out the issue, and it appears to still be caused by the Perception mod.

Specifically, here's a technical explanation. Perception has a mixin that makes all entities use the ITrailConfigProvider interface, which extends TrailProvider. TrailProvider has some client-only code like here:

default void renderTrail(float pTicks, PoseStack poseStack, MultiBufferSource bufferSourceList) {
...
}

Because this mixin is applied to all entity classes, regardless of what logical side we're on (client or server), it causes an error on servers. In this instance, because the mod also applied the mixin to the Chameleon class (because it's an entity), it threw an error, and Minecraft's error handler just saw that the Chameleon class threw an error and blamed Cold Sweat.

I'm not sure how this issue could be addressed, but using a mixin to inject client-only code into a common class is bound to have problems with other mods as well. A quick fix might be to annotate all client-only methods with @onlyin(Dist.CLIENT), which would prevent the server from seeing those client-only methods in the first place."
My original post was related to issue #8 Momo-Softworks/Cold-Sweat#8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions