Hello there, I have been working on adding a dimension to minecraft for quite a while now. The code that I previously used(MC 1.2.3) is now broken, so what I did was just copied over the ChunkProviderGenerate, WorldChunkManager and of course registered them properly inside my WorldProvider class but here is the thing I was getting errors, so I decided to go and instead of creating new classes I just created instances of allready existing minecraft classes.
Now what happens is(minecraft default normally working code) throws this at me
So I went and checked where did I make a mistake of calling the populate method twice and well I couldn't find that error.
I don't think that teleporter is necesary but here is most of the vital code of the dimension
Now What I need is: solution to my problem(or at least some pointers), open source dimension project(I will not steal, just compare the code and try to fix it), working code(ChunkProvider, WorldProvider, WorldChunkManager - again to compare and find not to steal).
Thanks for any help that I can get.