Pam's HarvestCraft

Pam's HarvestCraft

87M Downloads

harvescraft 1.12.2 spamming log with fruit tree gen disabled causing lag and ai freezing (starts at line 80560)

DJlasp opened this issue ยท 3 comments

commented
commented

I don't know about his lag issue, but I have fruit trees disabled and I get that message 10x a second in my log.

commented

This is the code you are saying is causing lag and ai freezing.

public void generate(Random random, int chunkX, int chunkZ, World world,
                     net.minecraft.world.gen.IChunkGenerator chunkGenerator, IChunkProvider chunkProvider) {
    if (!fruitTreeConfigManager.enableFruitTreeGeneration) {
        HarvestCraft.log.debug("disabled fruit tree generation");
        return;
    }

You might want to reconsider your assumption. The only thing this will do is spam the log file. It causes the function to log output and return instantly. I don't see how this could be causing your performance issues. One way you could test your theory out would be to recompile without the logging line and see what happens. I think you would still get slow performance because it is being caused by something else.

Do you have fruit tree generation disabled? I would assume yes since that is the only way this message would be logged.

commented

I'm having the exact same issue but fruit tree generation has NOT been disabled. Fruit trees are still appearing normally. I am running Dynamic Trees for PHC (just an FYI). I've been playing this world (single player) for months but the problem is recent. I can't figure out what changed since PHC nor Dynamic Trees for PHC have been updated for eons. I tried rolling back to an older version of Dynamic Tress but the problem persists. I can play for about an hour before Java freezes. The debug.log is filled with "[Server thread/DEBUG] [harvestcraft]: disabled fruit tree generation." The errors are logged, per second, ranging from 1 per second to 31 per second.