Funny stuff

Alexiy

Well-Known Member
Mar 3, 2014
231
129
68
Riga, Latvia
I encountered this funny message while looking at SimpleNetworkWrapper:
Code:
{
        try
        {
            defaultChannelPipeline = Class.forName("io.netty.channel.DefaultChannelPipeline");
            generateName = defaultChannelPipeline.getDeclaredMethod("generateName", ChannelHandler.class);
            generateName.setAccessible(true);
        }
        catch (Exception e)
        {
            // How is this possible?
            FMLLog.log(Level.FATAL, e, "What? Netty isn't installed, what magic is this?");
            throw Throwables.propagate(e);
        }
    }
 

mlane16

New Member
Jul 29, 2019
16
0
0
I encountered this funny message while looking at SimpleNetworkWrapper:
Code:
{
        try
        {
            defaultChannelPipeline = Class.forName("io.netty.channel.DefaultChannelPipeline");
            generateName = defaultChannelPipeline.getDeclaredMethod("generateName", ChannelHandler.class);
            generateName.setAccessible(true);
        }
        catch (Exception e)
        {
            // How is this possible?
            FMLLog.log(Level.FATAL, e, "What? Netty isn't installed, what magic is this?");
            throw Throwables.propagate(e);
        }
    }
This made my day. Reminded me of the Doom comment code lines. Thank you for sharing. (^ω~)

The simple explanation is that sometimes mods authors insert funny jokes into their code. The dino mod is caulk full of these in decorative art.
 
  • Like
Reactions: Alexiy