Funny stuff

Discussion in 'Mod Development' started by Alexiy, Jan 27, 2017.

  1. Alexiy

    Alexiy Well-Known Member

    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);
            }
        }
    
     
  2. mlane16

    mlane16 New Member

    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.
     
    Alexiy likes this.

Share This Page