Hwyla

Hwyla

86M Downloads

Crash looking at chameleon multi-storage chest

shortybsd opened this issue ยท 3 comments

commented

Forge 2199
MC v1.11
shetiphiancore-1.11.0-3.4.1
multistorage-1.11.0-1.3.0
Hwyla-1.8.5-B19_1.11

When looking at a chameleon multi-storage Hwyla/Waila crashes the client. Disable Hwyla and everything is fine. Here is the error:
http://pastebin.com/KbQDZ3Xr

commented

Caused by Multistorage returning null in BlockStorageType#getPickBlock(...). Please report this to them.

Relevant code:

    public ItemStack getPickBlock(IBlockState state, RayTraceResult target, World world, BlockPos pos, EntityPlayer player) {
        BlockStorageType.EnumType type = getEnumType(state);
        switch (BlockStorageType.1.$SwitchMap$shetiphian$multistorage$common$block$BlockStorageType$EnumType[type.ordinal()]) {
            case 1:
            ...
            case 16:
                return new ItemStack(this, 1, 6);
        }
        return null;
    }
commented

Adding a fallback with intrusive, yet protective behavior.

img

commented

Thank you sir, I wasn't for sure who was at blame but will inform the other developer. Thanks for the fast response and thanks for being a great developer that you are!