Draconic-Inc / Draconic-Evolution

Other
325 stars 164 forks source link

[1.20.1 indev] ModularItemMenu.java: client side class is used on DEDICTED_SERVER #1784

Closed Username404-59 closed 1 month ago

Username404-59 commented 1 month ago

I tested the indev 1.20.1 version on a dedicated server which resulted in it crashing because of this being ran:

} else {
    Minecraft.getInstance().getSoundManager().play(SimpleSoundInstance.forUI(SoundEvents.UI_BUTTON_CLICK, 1.0F));
}

on server side too

Edit: wrongly labeled as 1.16 obviously