12-23-2012, 11:57 PM
You can't. Because of multithreading, cChunk is not allowed to export cEntity pointers to the outside.
You need to write a function cWorld::DoWithDispenserAt(), with its internals similar to cWorld::DoWithChestAt().
Yes, I know it's too much of a hassle, but it's the only way we can keep the code thread-safe.
You need to write a function cWorld::DoWithDispenserAt(), with its internals similar to cWorld::DoWithChestAt().
Yes, I know it's too much of a hassle, but it's the only way we can keep the code thread-safe.