V0idWa1k3r / SmartBackpacks

A backpack mod for minecraft that adds backpacks of varying sizes that can be upgraded with various upgrades.
GNU Lesser General Public License v3.0
6 stars 8 forks source link

Issue with getSubItems containing a client only method #23

Open primetoxinz opened 5 years ago

primetoxinz commented 5 years ago

On this line EnumDyeColor.getColorValue is unfortunately set to SideOnly client. In my mod I use getSubItems on server to collect all variants for an item, so this causes a server side crash.

I also use this method on the server through reflection like so:

    public static int getDyeColor(EnumDyeColor color) {
        return ReflectionHelper.getPrivateValue(EnumDyeColor.class, color, "field_193351_w","colorValue");
    }
maxlowry123 commented 5 years ago

I really want to be able to use this mod on my server but I can't because of this crash. Please fix this as soon as possible so everyone can use this mod on servers that crash! It seems like it is the backpack mod with the most features!

Crash Log: https://pastebin.com/MMrCEzm3