How-Bout-No / Outvoted

Outvoted is a Minecraft mod that adds in mobs from previous mob votes that weren't able to make it into the game, trying to stay true to the original concepts.
GNU General Public License v3.0
22 stars 10 forks source link

[BUG-1.16.5] Server crashes when world generates for the first time. (Gets stuck at preparing spawn area X%.) #109

Closed Gbergz closed 2 years ago

Gbergz commented 2 years ago

Describe the bug Server crashes when world generates for the first time. (Gets stuck at preparing spawn area X%.)

To Reproduce Steps to reproduce the behavior:

  1. Go to install mod on server.
  2. Start it.
  3. Let it try to generate world.
  4. Stuck.
  5. Crash but doesn't close, gets stuck at preparing spawn area.

Logs https://gist.github.com/Gbergz/6081a1fea409ae759e2d8e36bd69d1f3

Version (please complete the following information):

Gbergz commented 2 years ago

Ignore this. Regenerated the config and now it seems to work fine.

Gbergz commented 2 years ago

Seems to happen again after some restarts. How weird..

Caused by: java.lang.NoSuchMethodError: net.minecraft.world.spawner.WorldEntitySpawner$EntityDensityManager.func_234988_a_()I
        at io.github.how_bout_no.outvoted.world.SpawnUtil.isBelowCap(SpawnUtil.java:14) ~[outvoted:?] {re:classloading}
        at io.github.how_bout_no.outvoted.world.feature.BurrowGenFeature.generate(BurrowGenFeature.java:38) ~[outvoted:?] {re:classloading}
Gbergz commented 2 years ago

Any clues?

How-Bout-No commented 2 years ago

Interesting. To take it at face value a method is missing that shouldn't be missing as far as I am aware. Even more odd is that it fixed itself after a config reset? I'll take a look if I have time aside from 1.5.

Gbergz commented 2 years ago

Even more odd is that it fixed itself after a config reset?

Seems it was just a fluke, it's like 20% success on boot now. (that it actually starts).

How-Bout-No commented 2 years ago

Seems it was just a fluke, it's like 20% success on boot now. (that it actually starts).

Is this on the same server? And are you using a certain world seed or generating randomly? I haven't been able to recreate this on my end so far.

Gbergz commented 2 years ago

Same server. Crash happens almost every time. Same logs as above.

How-Bout-No commented 2 years ago

Yea I can't manage to replicate the error on my end, at least with just Outvoted and the dependencies. Server always starts fine without issue. Are you using the latest Forge version?

Gbergz commented 2 years ago

Hm, strange. Yes latest forge.

How-Bout-No commented 2 years ago

I'll modify/mess around with my test env to see if I can get this error to come out. I think I might just need to force a spawn near the desert.

How-Bout-No commented 2 years ago

Ah, wait, now I recognize the error. Been a while since I've worked on 2.0 but this is the same issue as #82 and #83, I just never published a fix for 1.16.5 :P Kinda overcomplicated this, but safe to say I was able to reproduce the crash and have a fix ready.

How-Bout-No commented 2 years ago

Fixed in alpha 13