| 628 | |
| 629 | |
| 630 | void cChunk::TickBlock(int a_RelX, int a_RelY, int a_RelZ) |
| 631 | { |
| 632 | unsigned Index = MakeIndex(a_RelX, a_RelY, a_RelZ); |
| 633 | cBlockHandler * Handler = BlockHandler(m_BlockTypes[Index]); |
| 634 | ASSERT(Handler != NULL); // Happenned on server restart, FS #243 |
| 635 | cChunkInterface ChunkInterface(this->GetWorld()->GetChunkMap()); |
| 636 | cBlockInServerPluginInterface PluginInterface(*this->GetWorld()); |
| 637 | Handler->OnUpdate(ChunkInterface, *this->GetWorld(), PluginInterface,*this, a_RelX, a_RelY, a_RelZ); |
| 638 | } |
| 639 | |
| 640 | |
| 641 |
no test coverage detected