The Lost Cities

The Lost Cities

60M Downloads

1.18.2 - Crash during feature placement - java.lang.NullPointerException: Null part for null

trienow opened this issue ยท 2 comments

commented

When initially generating a world with lost cities (with the attached config) the game crashes.

Attempts to pinpoint

Config 1

I noticed that the provided configs work just fine, but my edited config does not.
With this config, the server crashes a couple of seconds after I join, the server goes down.

  • Config: https://pastebin.com/fE274Ru9 (A modified copy of cavern.json)
  • Crash: crash-2022-05-29_20.04.38-server.txt
    • Note that the seed in the crash report is incorrect. I'm using the seed 8984587677161112628. I don't know why it outputs the number it does.
  • debug.log: https://pastebin.com/Vx1Rq8h7
    • Interesting are the Tried to load a DUMMY block entity @ BlockPos{x=136, y=71, z=-115} but found not block entity block Block{minecraft:air} at location messages while generating the world. These go away, when I set the city-chance to a very low number or zero.

Setting the setting railwaysCanEnd back to false prevents the crash It seemed to have worked, but using the following config, a crash still occurs.

Config 2

This config is identical to the first config, with the following differences:

  • railwaysCanEnd is false
  • The explosion settings have been copied from the cavern.json profile
  • The cityChance has been decreased by ten.

Info:

The call stack looks similar, though now I'm not sure what setting is causing it...

Versions

Entity Version
Minecraft 1.18.2
Forge 40.1.22 & 40.1.25 (the newest available, which another mod requires)
Lost Cities 1.18-5.1.0 & 1.18-5.1.1

If any more information is needed, I am happy to provide it.

commented

I changed quite a bit because it always seemed like it was working. My new suspicion is the setting buildingMinCellars which I increased from 0 to 1.

A full diff of the settings I changed, is here: https://pastebin.com/ZqzwvNGm

commented

This is caused by wrong config. Can you tell me exactly what you modified on the config?