Strange error with world tile instance

First of all, I know that it’s probably an error in some configuration of Visual Studio, or my PC.

The problem is simple: Instance error, “Object is not instantiated”, but all the object’s data is, and this includes the object

1
2

Just as a warning, in this case, x is 254 and Y is 512, but in all tests they are always different values, never the same, even with the same seed and the same fields

Candidates for null on the offending line:

writer
Main

world
world.tiles
x
Y
world[tiles[x, Y]
world[tiles[x, Y].id

Your second image appears to rule out the last 6 listed so look at Main and writer.

Check the values for each of those to see which one is null.

“writer” is highlighted…