[1.337b][Bug] Wind generators updates it's obscured block count every 128 ticks rather than every 1024 ticks as was intended.

  • In the 1.337b source i found what appears to be an unintentional mishap.


    In TileEntityWindGenerator.java:69

    Code
    if(ticker % (8 * tickRate()) != 0 || !initialized)
                {
                    updateObscuratedBlockCount();
                    initialized = true;
                }


    I believe the intention was to run this every 1024 ticks but due to it having a "!= 0" instead of a "== 0" it is run every 128 ticks EXCEPT for the 1024th, 2048th, 3072nd, 4096th ticks...
    Small easy fix. Just stumbled on it as i wanted to understand wind generators a bit better.