| 678 | } |
| 679 | |
| 680 | void WorldGenerator::initEntity(WorldStorage*, EntityId entityId, EntityPtr const& entity) { |
| 681 | entity->init(m_worldServer, entityId, EntityMode::Master); |
| 682 | if (auto tileEntity = as<TileEntity>(entity)) |
| 683 | m_worldServer->updateTileEntityTiles(tileEntity, false, false); |
| 684 | } |
| 685 | |
| 686 | void WorldGenerator::destructEntity(WorldStorage*, EntityPtr const& entity) { |
| 687 | if (entity->isSlave()) |
no test coverage detected