Closed marchermans closed 2 years ago
I think this is related to #7
Here's a spark profiler showing similar issue: https://spark.lucko.me/k3preh2LJm
Hey, I'm having a similar issue, and am working on a fork to improve the tile search, but in the meantime, a really, really fast hotfix that would help this would be just adding a check for if sage has any range in https://github.com/JoeFoxe/Hexerei-1.18/blob/main/src/main/java/net/joefoxe/hexerei/events/SageBurningPlateEvent.java
//new line here
if(HexConfig.SAGE_BURNING_PLATE_RANGE.get()==0)return;
List<BlockPos> nearbySageBurningPlates = HexereiUtil.getAllTileEntityPositionsNearby(ModTileEntities.SAGE_BURNING_PLATE_TILE.get(), HexConfig.SAGE_BURNING_PLATE_RANGE.get() + 1, world, entity);
if (nearbySageBurningPlates.size() == 0) {
return;
}
If you add that line, then at least people that disable sage burning working at all won't get swamped during large world spawns. I'm taking a look at what that other helpful dude said in the other issue, but i would really appreciate it if you pushed this tiny change as a stopgap. I really want to run your mod in my modpack, I have some friends that really love what you've done.
https://pastebin.com/DT8YSjgr looks like the same thing but sharing just in case it helps.
Awesome! Thank you for the tips and for working on a fork haha, I have been taking some mental time off which is why I havent been replying to much but I will start to work on it again more now
I can't continue work on the fork, but the best advice i didn't implement is just having a static list of positions by world of currently burning sage entities and checking if any of those entities were near enough instead of exhaustively by chunk.
hopefully fixed up in the latest version, if not you can disable it via configs
Hello,
We had a server hangup during worldgen. Based on the threaddump it looks like you are looking up the tile entities in an area, this can cause hangups.