Not wanting to attach to non WorldChunk chunks
amusingimpala75 opened this issue ยท 1 comments
I only wish to add a component to a chunk if it is a WorldChunk, however the register method requires me to always return a component to be attached, even if it is a ReadOnly chunk. The issue arises when I need to grab information from a chunk on registration, but the ReadOnlyChunk's wrapped chunk is not init-ed yet.
- Register a chunk component and in the registering process try to cache the ChunkPos of the chunk.
- The game should crash with "Cannot invoke getPos in ReadOnlyChunk because this.wrapped is null!"