DaFuqs / Spectrum

A full-feature minecraft mod about harnessing the powers of color
Other
102 stars 60 forks source link

[BUG] Spectrum is causing Sawmill mod to crash on server #341

Closed Trent2087 closed 8 months ago

Trent2087 commented 8 months ago

Describe the bug Using the Sawmill mods Sawmill block crashes on servers. No issue without Spectrum.

To Reproduce Have both Spectrum and Sawmill mods. Use the Sawmill mods Sawmill block on a server. (https://github.com/MehVahdJukaar/sawmill)

Expected behavior Not causing another mod to call client code

Mod version 1.7.4

Crash Report

Description: Exception in server tick loop

java.lang.NoClassDefFoundError: net/minecraft/MinecraftClient
    at de.dafuqs.spectrum.registries.SpectrumItemGroups.lambda$static$4(SpectrumItemGroups.java:394)
    at de.dafuqs.fractal.api.ItemSubGroup.updateEntries(ItemSubGroup.java:38)
    at net.minecraft.item.ItemGroups.mdc60a03$fractal$lambda$updateEntries$0$0(ItemGroups.java:2629)
    at net.minecraft.item.ItemGroups.updateDisplayContext(ItemGroups.java:2063)
    at net.mehvahdjukaar.sawmill.RecipeSorter.refreshIfNeeded(RecipeSorter.java:31)
    Caused by: java.lang.ClassNotFoundException: net.minecraft.client.MinecraftClient

(https://hastebin.com/share/itefesogel.yaml)

DaFuqs commented 8 months ago

How did that ever work

DaFuqs commented 8 months ago

Quality bug report as always, ty!